-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ee5811
commit 2d55ce3
Showing
5 changed files
with
78 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
net NET_IF tcpflags,dhcp,nosmurfs,routefilter,logmartians,sourceroute=0,physical=eno1 | ||
loc LOC_IF tcpflags,dhcp,nosmurfs,routefilter,routeback=1,logmartians,physical=enp3s0f0 | ||
dmz DMZ_IF tcpflags,dhcp,nosmurfs,routefilter,routeback=1,logmartians,physical=enp3s0f1 | ||
wg azirevpn-uk1 |
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,21 @@ | ||
$FW net ACCEPT | ||
$FW loc ACCEPT | ||
$FW dmz ACCEPT | ||
$FW wg ACCEPT | ||
|
||
loc net ACCEPT | ||
loc $FW ACCEPT | ||
loc dmz ACCEPT | ||
loc wg ACCEPT | ||
|
||
dmz net ACCEPT | ||
dmz loc ACCEPT | ||
dmz wg ACCEPT | ||
|
||
wg $FW ACCEPT | ||
wg dmz ACCEPT | ||
|
||
net all DROP info | ||
|
||
# THE FOLLOWING POLICY MUST BE LAST | ||
all all REJECT $LOG_LEVEL |
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,46 @@ | ||
DNS(ACCEPT) loc $FW | ||
DNS(ACCEPT) dmz $FW | ||
# | ||
# Accept WireGuard | ||
ACCEPT net $FW udp 51820 | ||
# Accept SSH connections from the local network to the firewall and DMZ servers | ||
# | ||
SSH(ACCEPT) loc $FW | ||
SSH(ACCEPT) loc dmz | ||
# | ||
# DMZ DNS access to the Internet | ||
# | ||
DNS(ACCEPT) dmz net | ||
|
||
|
||
# Drop Ping from the "bad" net zone. | ||
|
||
Ping(DROP) net $FW | ||
|
||
# | ||
# Make ping work bi-directionally between the dmz, net, Firewall and local zone | ||
# (assumes that the loc-> net policy is ACCEPT). | ||
# | ||
|
||
Ping(ACCEPT) loc $FW | ||
Ping(ACCEPT) dmz $FW | ||
Ping(ACCEPT) net $FW | ||
Ping(ACCEPT) loc dmz | ||
Ping(DROP) dmz loc | ||
Ping(ACCEPT) dmz net | ||
|
||
ACCEPT $FW net icmp | ||
ACCEPT $FW loc icmp | ||
ACCEPT $FW dmz icmp | ||
|
||
# Uncomment this if using Proxy ARP and static NAT and you want to allow ping from | ||
# the net zone to the dmz and loc | ||
|
||
#Ping(ACCEPT) net dmz | ||
#Ping(ACCEPT) net loc | ||
|
||
# DNAT port forwards - add more as required, following this template | ||
|
||
DNAT loc dmz:192.168.2.5 tcp 80 - [WAN_IP] | ||
DNAT dmz dmz:192.168.2.5 tcp 80 - [WAN_IP] | ||
DNAT net dmz:192.168.2.5:80 tcp 80 |
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 @@ | ||
MASQUERADE 192.168.1.0/24 azirevpn-uk1 | ||
MASQUERADE 192.168.2.0/24 eno1 |
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 @@ | ||
fw firewall | ||
net ipv4 | ||
loc ipv4 | ||
dmz ipv4 | ||
wg ipv4 |