how do you ufw allow in on wlan0 not to

Asked by Tristan Hill on 2012-03-05

To allow traffic except to a specific host/network. I'd guess syntax like 'ufw allow in on wlan0 not to'. Is that possible?

Question information

English Edit question
Ubuntu ufw Edit question
No assignee Edit question
Last query:
Last reply:
Tristan Hill (stan) said : #1

Hmm guess you have to 'ufw reject in on wlan0 to' and ufw allow in on wlan0 to separately? Any I think these are only affecting input rules and not forwarding, which is what I'm after.

Tristan Hill (stan) said : #2

For now added

-A ufw-after-forward -i wlan0 -d -j ACCEPT
-A ufw-after-forward -i wlan0 ! -d -j ACCEPT

to /etc/ufw/after.rules

If you have a desktop OS, you can use gufw

Can you help with this problem?

Provide an answer of your own, or ask Tristan Hill for more information if necessary.

To post a message you must log in.