Community discussions

MikroTik App
 
Smith
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Mon Dec 19, 2005 1:06 pm

incoming-filter, not sure what to do

Wed Oct 10, 2007 4:58 pm

I am not sure what would be exact firewall rules to have incoming-filter per profile.
i've made new chain, named ppp.out, in it i am allowing only two IP's (just for testing).
ppp rules are dynamicaly made upon connect and they have two jumps to ppp.out, but nothing is passing through them, and entire internet is accessible:
/ip firewall filter 
add action=accept chain=ppp.out comment="" disabled=no dst-address=my_network_ip_range
add action=reject chain=ppp.out comment="" disabled=no reject-with=icmp-network-unreachable 
two ppp chains are dynamic, couldn't list those. they are jump jump-target=ppp.out

but, nothing is passing through those filters :(

Please help, i am writing this after googling, but i can't find an example anywhere :(
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: incoming-filter, not sure what to do

Wed Oct 10, 2007 5:04 pm

you have any rule that will jump to that chain? (action=jump chain=ppp.out)

if you check in firewall manual you can see what chains are available at the beginning, and after that - when you create chains, you have to direct traffic into your chain from default chains
 
Smith
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Mon Dec 19, 2005 1:06 pm

Re: incoming-filter, not sure what to do

Wed Oct 10, 2007 8:34 pm

Yes, two dynamic rules are made upon connect, with jump to ppp.out, but nothing goes through those rules...
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: incoming-filter, not sure what to do

Wed Oct 10, 2007 9:18 pm

Mainly you need to manually jump to 'ppp' chain from the 'forward' chain, it is not automatic. Typically you should jump to this chain after checking bogons and established / related rules.

add chain=forward action=jump jump-target=ppp comment="PPP chains - in and \
out" disabled=no

Sam
 
Smith
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Mon Dec 19, 2005 1:06 pm

Re: incoming-filter, not sure what to do

Wed Oct 10, 2007 9:47 pm

Thank you, that worked :)

Who is online

Users browsing this forum: Bing [Bot], bitflow, BoandlKramer, sas2k, sindy and 40 guests