V
V
valeriyaXW2017-10-07 17:55:01
DHCP
valeriyaXW, 2017-10-07 17:55:01

How to disable access to the Internet through eth0 in linux (without disabling it), and allow it only through wlan0?

Hello! Launched Kali linux on Raspberry Pi. The lan port of the Raspberry Pi is connected to the router, and the wifi receiver is set to the desired wifi network. BUT! Respbury accesses the Internet through a router, but you need to make sure that Respbury has Internet access only through a wifi receiver.
How to forbid access to the Internet through eth0 (but not disable this connection so that there is access through the local network)???
And make Internet access only through wlan0?
After the ifconfig command, I see these devices:
eth0: this is the LAN port (I should be able to connect via SSH through it, but the respreby should not try to access the Internet through it) - the ip address is received by dhcp
lo:
wlan0: this is a wifi successor (through it I have to access the Internet) - the ip address is received by dhcp
Thanks for the help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2017-10-07
@Rsa97

Specify the WiFi point address as the default gateway.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question