Results 1 to 3 of 3
Hi there,
I want to use below command in my firewall. Actually -t nat should be my own function.
iptables -t nat -A POSTROUTING -j ACCEPT -o $INT_IF -d $INT_NET
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-01-2007 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 2
iptables question
Hi there,
I want to use below command in my firewall. Actually -t nat should be my own function.
iptables -t nat -A POSTROUTING -j ACCEPT -o $INT_IF -d $INT_NET
I want to specify two subnets following -d. And these two subnets must be excluded. I know "-d ! 192.168.2.0/24" works. But now I want two subnets excluded. When I tried "-d ! 192.168.2.0/24 && ! 192.168.1.0/24", it can't work.
Please help guys. I have been searched for a long time, still can't figure it out.
Thank you very much!
Lou
- 06-01-2007 #2
- 06-01-2007 #3Just Joined!
- Join Date
- Jun 2007
- Posts
- 2
Thanks!!!
I tried. But because of my own function(not -t nat), I must use only one rule.
Any other help?
Thanks!
Lou


Reply With Quote
