misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket
2019-09-24 15:54:41 +02:00
parent c794a02c6a
commit 5bac6ba5c0
3 changed files with 6 additions and 29 deletions

View File

@ -8,7 +8,7 @@ USB_IFACE_NET=10.0.0.0/24
UPSTREAM_IFACE=${2:-enxe4b97aa99867}
ip addr add $USB_IFACE_IP/24 dev $USB_IFACE
ifconfig $USB_IFACE up
ip link set $USB_IFACE up
iptables -A FORWARD -o $UPSTREAM_IFACE -i $USB_IFACE -s $USB_IFACE_NET -m conntrack --ctstate NEW -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT