fixing firewall scirpt and rolling back to hardcoded IP till I get the systemd unit file
This commit is contained in:
parent
2e95eb7bad
commit
002d2e0221
|
@ -21,7 +21,7 @@ case $1 in
|
||||||
iptables -A INPUT -p esp -j ACCEPT # ipsec
|
iptables -A INPUT -p esp -j ACCEPT # ipsec
|
||||||
iptables -A INPUT -p udp --dport 500 --sport 500 -j ACCEPT # ipsec
|
iptables -A INPUT -p udp --dport 500 --sport 500 -j ACCEPT # ipsec
|
||||||
iptables -A INPUT -p udp --dport 4500 --sport 4500 -j ACCEPT # ipsec
|
iptables -A INPUT -p udp --dport 4500 --sport 4500 -j ACCEPT # ipsec
|
||||||
iptables -A INPUT -s bastion.usw2.wit.com -p udp --sport 53 -j ACCEPT # dns
|
iptables -A INPUT -s 170.199.217.0 -p udp --sport 53 -j ACCEPT # dns
|
||||||
iptables -A INPUT -p icmp -j ACCEPT
|
iptables -A INPUT -p icmp -j ACCEPT
|
||||||
#traffic we want to see encrypted over the VPN
|
#traffic we want to see encrypted over the VPN
|
||||||
iptables -A INPUT -m policy --pol ipsec --dir in -p udp --dport 4789 -m policy --pol ipsec --dir in -j ACCEPT # vxlan traffic
|
iptables -A INPUT -m policy --pol ipsec --dir in -p udp --dport 4789 -m policy --pol ipsec --dir in -j ACCEPT # vxlan traffic
|
||||||
|
@ -48,8 +48,9 @@ case $1 in
|
||||||
ip6tables -P INPUT ACCEPT
|
ip6tables -P INPUT ACCEPT
|
||||||
ip6tables -F INPUT
|
ip6tables -F INPUT
|
||||||
ip6tables -A INPUT -p ipv6-icmp -j ACCEPT # ping
|
ip6tables -A INPUT -p ipv6-icmp -j ACCEPT # ping
|
||||||
ip6tables -A INPUT -s bastion.usw2.wit.com -p udp --sport 53 -j ACCEPT # dns
|
ip6tables -A INPUT -s 2604:bbc0:0:113::1 -p udp --sport 53 -j ACCEPT # dns
|
||||||
ip6tables -A INPUT -s ipv6.ntp.ubuntu.com -p udp --sport 123 -j ACCEPT # ntp
|
ip6tables -A INPUT -s 2001:67c:1560:8003::c7 -p udp --sport 123 -j ACCEPT # ntp
|
||||||
|
ip6tables -A INPUT -s 2001:67c:1560:8003::c8 -p udp --sport 123 -j ACCEPT # ntp
|
||||||
ip6tables -A INPUT -s fe80::/10 -p tcp --sport 179 -j ACCEPT # bgp (allow init as well as responding)
|
ip6tables -A INPUT -s fe80::/10 -p tcp --sport 179 -j ACCEPT # bgp (allow init as well as responding)
|
||||||
ip6tables -A INPUT -s fe80::/10 -p tcp --dport 179 -j ACCEPT # bgp (allow init as well as responding)
|
ip6tables -A INPUT -s fe80::/10 -p tcp --dport 179 -j ACCEPT # bgp (allow init as well as responding)
|
||||||
### mgmt
|
### mgmt
|
||||||
|
|
Loading…
Reference in New Issue