Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sudo iptables -A INPUT -i wlan1 -j ACCEPT
- sudo iptables -A FORWARD -i wlan1 -o wlan0 -j ACCEPT
- sudo iptables -A FORWARD -i wlan0 -o wlan1 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
- sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
- sudo sysctl net.ipv4.ip_forward=1
- sysctl -w net.ipv4.conf.all.route_localnet=1
- iptables -t nat -I PREROUTING -p tcp --dport 80 -j DNAT --to 127.0.0.1:9090
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement