Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- раздаёт 192.168.1.1 255.255.255.0
- принимает 192.168.1.2 255.255.255.0 gateway 192.168.1.1 /etc/resolv.conf nameserver 8.8.8.8
- echo "1" > /proc/sys/net/ipv4/ip_forward
- iptables -F
- iptables -F -t nat
- iptables -P OUTPUT ACCEPT
- iptables -P FORWARD ACCEPT
- iptables -t nat -A POSTROUTING -s 192.168.1.1/24 -o wlan0 -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement