Re: ufw forward rules after the filter is applied?
I spoke too fast.
The ufw-before-forward rules are tried to be applied, but I think I am getting the syntax wrong. On boot it reports a problem with before.rules.
I thought something like:
-A ufw-before-forward -s IP1 --dport <port> -j ACCEPT
should work. Any thoughts?
EDIT: OK, got it. The --dport and --sport don't work unless you use -p tcp. Only then the modules get loaded. So it should be something like:
-A ufw-before-forward -p tcp -s IP1 --dport <port> -j ACCEPT
-A ufw-before-forward -p tcp --dport <port> -j DROP
Last edited by darkod; March 27th, 2012 at 10:06 AM.
Darko.
-----------------------------------------------------------------------
Ubuntu 18.04 LTS 64bit
Bookmarks