state
This commit is contained in:
parent
2cc77069ee
commit
0e314866e0
|
@ -165,11 +165,11 @@ function stop {
|
|||
iptables -D INPUT -p udp --dport 8942 -j ACCEPT
|
||||
|
||||
iptables -t nat -D POSTROUTING -o $EIFACE -j MASQUERADE
|
||||
iptables -D FORWARD -i $EIFACE -o $IFACE -j ACCEPT -m state –state RELATED,ESTABLISHED
|
||||
iptables -D FORWARD -i $EIFACE -o $IFACE -j ACCEPT -m state --state RELATED,ESTABLISHED
|
||||
iptables -D FORWARD -i $IFACE -o $EIFACE -j ACCEPT
|
||||
|
||||
if [ $IFACE_SECONDARY ]; then
|
||||
iptables -D FORWARD -i $IFACE -o $IFACE_SECONDARY -j ACCEPT -m state –state RELATED,ESTABLISHED
|
||||
iptables -D FORWARD -i $IFACE -o $IFACE_SECONDARY -j ACCEPT -m state --state RELATED,ESTABLISHED
|
||||
iptables -D FORWARD -i $IFACE_SECONDARY -o $IFACE -j ACCEPT
|
||||
fi
|
||||
|
||||
|
@ -339,11 +339,11 @@ function start {
|
|||
iptables -A INPUT -p udp --dport 8942 -j ACCEPT
|
||||
|
||||
iptables -t nat -A POSTROUTING -o $EIFACE -j MASQUERADE
|
||||
iptables -A FORWARD -i $EIFACE -o $IFACE -j ACCEPT -m state –state RELATED,ESTABLISHED
|
||||
iptables -A FORWARD -i $EIFACE -o $IFACE -j ACCEPT -m state --state RELATED,ESTABLISHED
|
||||
iptables -A FORWARD -i $IFACE -o $EIFACE -j ACCEPT
|
||||
|
||||
if [ $hotspot_enabled ]; then
|
||||
iptables -A FORWARD -i $IFACE -o $IFACE_SECONDARY -j ACCEPT -m state –state RELATED,ESTABLISHED
|
||||
iptables -A FORWARD -i $IFACE -o $IFACE_SECONDARY -j ACCEPT -m state --state RELATED,ESTABLISHED
|
||||
iptables -A FORWARD -i $IFACE_SECONDARY -o $IFACE -j ACCEPT
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue