mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge pull request #3 from dadav/fix/ip_vs_ifconfig
Use ip to bring interface up
This commit is contained in:
@ -74,7 +74,7 @@ USB_IFACE_NET=10.0.0.0/24
|
|||||||
UPSTREAM_IFACE=enxe4b97aa99867
|
UPSTREAM_IFACE=enxe4b97aa99867
|
||||||
|
|
||||||
ip addr add $USB_IFACE_IP/24 dev $USB_IFACE
|
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 -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
|
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
|
||||||
|
Reference in New Issue
Block a user