E
E
enot_cz2017-08-30 09:03:28
linux
enot_cz, 2017-08-30 09:03:28

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

3 answer(s)
X
xp3, 2017-08-30
@xp3

default gateway should look at the wlan0 interface
or add the route "everything except LAN -> wlan0 interface"

C
cssman, 2017-08-30
@cssman

maybe just make a nat rule?)
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

V
Vovanys, 2017-08-30
@Vovanys

see first route -n
remove default route route del default gw ip
add default route route add default gw router_ip wlan0
xgu.ru/wiki/%D0%9C%D0%B0%D1%80%D1%88%D1%80 %D1%83%D...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question