firewall - How are do I specify both source and destination flags in the iptables FORWARD chain? -


since have iptables running on router, seems chain works forward chain block traffic between lan , internet.

in these forward chain rules, like...

iptables -i forward 1 -d 198.41.16.0/17 -j reject 

...but since router doesn't understand direction of traffic, need 2 rules, this...

iptables -i forward 1 -d 198.41.16.0/17 -j reject iptables -i forward 1 -s 198.41.16.0/17 -j reject 

is there way combine them? or missing something?

to knowledge, not possible have iptables command (effectively) or match in it. expect way desired outcome 2 separate statements.

best of luck!


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -