Answer the question
In order to leave comments, you need to log in
How to redirect traffic to wlan0?
Good afternoon! on a computer there are 2 interfaces eth0 looks in a lokalka, wlan0 looks in the Internet. The problem is this: no internet access. All traffic goes to eth0. Iptables are empty. How to redirect traffic to wlan0?
Ubuntu 12.04
Thanks!
Answer the question
In order to leave comments, you need to log in
default gateway should look at the wlan0 interface
or add the route "everything except LAN -> wlan0 interface"
maybe just make a nat rule?)
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question