-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from iArcanic/DMZ-subnet
DMZ-subnet
- Loading branch information
Showing
7 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# IP of DMZ-switch | ||
ip addr add 10.0.1.2/24 dev eth0 | ||
ip link set up dev eth0 | ||
|
||
# Gateway IP to Central-router | ||
ip route add default via 10.0.1.1 dev eth0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# hosts external to fido | ||
nameserver 8.8.8.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# IP of Squid | ||
ip addr add 10.0.1.3/24 dev eth0 | ||
ip link set up dev eth0 | ||
|
||
# Route to DMZ-switch | ||
ip route add default via 10.0.1.2 dev eth0 | ||
|
||
# Start Squid service | ||
touch /var/log/squid/access.log | ||
chmod 777 /var/log/squid/access.log | ||
systemctl start squid.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# hosts external to fido | ||
nameserver 8.8.8.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
acl all src all | ||
http_access allow all | ||
http_port 3128 transparent | ||
http_port 3129 | ||
access_log /var/log/squid/access.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
# Internet | ||
Internet[0]=Internet | ||
Internet[1]=Central-router | ||
|
||
# Central-router | ||
Central-router[0]=Central-router | ||
Central-router[1]=DMZ | ||
|
||
# DMZ subnet | ||
DMZ-switch[0]=DMZ | ||
Squid[0]=DMZ |