upstream.iptables: default to accept icmp
This commit is contained in:
parent
e8d76ced00
commit
2a730e81c9
|
@ -9,6 +9,8 @@ fi
|
|||
if [ "$IFACE" = "{{ interface }}" ]; then
|
||||
iptables -A INPUT -i "$IFACE" -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||
ip6tables -A INPUT -i "$IFACE" -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||
iptables -A INPUT -i "$IFACE" -p icmp -j ACCEPT
|
||||
ip6tables -A INPUT -i "$IFACE" -p icmp -j ACCEPT
|
||||
iptables -A INPUT -i "$IFACE" -j DROP
|
||||
ip6tables -A INPUT -i "$IFACE" -j DROP
|
||||
iptables -P INPUT ACCEPT
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
/usr/sbin/iptables -I INPUT -p icmp -j ACCEPT
|
||||
/usr/bin/curl "https://{{ username }}:{{ key }}@ipv4.tunnelbroker.net/nic/update?hostname={{ tunnel_id }}"
|
||||
|
|
Loading…
Reference in New Issue