#3309 Bug creating a "destination port does not equal" rule

1.450
closed-fixed
5
2009-02-25
2009-02-25
No

In "Linux Firewall" module, try to create a rule like this (see attached sample screenshot):

Network protocol: TCP (same with UDP, ...)
Destination port: Does not equal 54321,54322 (more than one port)

The rule is saved as "Equals" and not as "Does not equual".
This is the iptables generated config:
-A FORWARD -p tcp -m tcp -m multiport --dports 54321,54322 -j ACCEPT

which is not what I want.

Specifying a single port, the rule is created correctly:
-A FORWARD -p tcp -m tcp ! --dport 54321 -j ACCEPT

Thanks
Claudio

Discussion

  • Claudio Nicora

    Claudio Nicora - 2009-02-25

    Screenshot

     
  • Jamie Cameron

    Jamie Cameron - 2009-02-25
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2009-02-25

    Thanks, this is a bug .. I will fix it in the next Webmin release.

     
  • Claudio Nicora

    Claudio Nicora - 2009-02-25

    Great, you've done a great job with this module!

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks