On Tue, Feb 13, 2018 at 5:10 PM, ferdster <ftjan...@gmail.com> wrote:
> If I set TETHER_ENABLED=no, then I lose the SoftAP interface completely. I
> still want the SoftAP, I just don't want data to be routed between the
> SoftAP and wlan0 (or 4G or USB eth0, etc).
>
> I am not very familiar with it, but is it something in iptables? Initially
> it was:
> debian@beaglebone:~$ sudo iptables -S
> -P INPUT ACCEPT
> -P FORWARD ACCEPT
> -P OUTPUT ACCEPT
> -A FORWARD -i wlan0 -o SoftAp0 -m state --state RELATED,ESTABLISHED -j
> ACCEPT
> -A FORWARD -i SoftAp0 -o wlan0 -j ACCEPT
>
> I tried removing the last two lines to make it:
> debian@beaglebone:~$ sudo iptables -S
> -P INPUT ACCEPT
> -P FORWARD ACCEPT
> -P OUTPUT ACCEPT
>
> But, that still didn't stop internet access while connected to the SoftAP.

i think..

iptables -A INPUT -i SoftAp0 -p tcp ! --dport 22 -j DROP

then you can ssh into SoftAP0...

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYhfTtrEHN%3DPDD9vDttPZ7s9LygtSkRksSirfcDYFcQYuQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to