fixing firewall scirpt and rolling back to hardcoded IP till I get the systemd unit file

This commit is contained in:
toby 2018-09-13 23:41:28 +02:00
parent 2e95eb7bad
commit 002d2e0221
1 changed files with 4 additions and 3 deletions

View File

@ -21,7 +21,7 @@ case $1 in
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 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
#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
@ -48,8 +48,9 @@ case $1 in
ip6tables -P INPUT ACCEPT
ip6tables -F INPUT
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 ipv6.ntp.ubuntu.com -p udp --sport 123 -j ACCEPT # ntp
ip6tables -A INPUT -s 2604:bbc0:0:113::1 -p udp --sport 53 -j ACCEPT # dns
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 --dport 179 -j ACCEPT # bgp (allow init as well as responding)
### mgmt