Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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 !" works. But now I want two subnets excluded. When I tried "-d ! && !", 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!


  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Try using two rules - one for each subnet.

  3. #3
    I tried. But because of my own function(not -t nat), I must use only one rule.

    Any other help?


  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts