fixing DHCP6 offer packets on firewall to come through
This commit is contained in:
parent
d96371752d
commit
7d30951603
|
@ -41,7 +41,8 @@ case $1 in
|
||||||
ip6tables -A INPUT -s 2001:67c:1560:8003::c8 -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)
|
||||||
ip6tables -A INPUT -s fe80::/10 -p udp --dport 546 -j ACCEPT # dhcp offers
|
### mgmt
|
||||||
|
ip6tables -A INPUT -i mgmt1 -s fe80::/10 -p udp --dport 546 -j ACCEPT # allow dhcp replys
|
||||||
### DROP the rest
|
### DROP the rest
|
||||||
ip6tables -P INPUT DROP
|
ip6tables -P INPUT DROP
|
||||||
|
|
||||||
|
@ -56,8 +57,11 @@ case $1 in
|
||||||
ip6tables -t raw -F
|
ip6tables -t raw -F
|
||||||
|
|
||||||
|
|
||||||
ip6tables -t raw -A PREROUTING -j NOTRACK
|
ip6tables -t raw -A PREROUTING ! -i mgmt1 -j NOTRACK
|
||||||
ip6tables -t raw -A OUTPUT -j NOTRACK
|
ip6tables -t raw -A OUTPUT ! -o mgmt -j NOTRACK
|
||||||
|
ip6tables -A INPUT -i mgmt1 -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||||
|
ip6tables -A INPUT -i mgmt1 -p tcp --dport 22 -j ACCEPT
|
||||||
|
|
||||||
##### temp rules till we get VRF in place in the factory, just flip the 3 rules below
|
##### temp rules till we get VRF in place in the factory, just flip the 3 rules below
|
||||||
if ip link show dev mgmt >/dev/null 2>&1; then
|
if ip link show dev mgmt >/dev/null 2>&1; then
|
||||||
iptables -t raw -A PREROUTING ! -i mgmt1 -j NOTRACK
|
iptables -t raw -A PREROUTING ! -i mgmt1 -j NOTRACK
|
||||||
|
|
Loading…
Reference in New Issue