Opened 15 years ago

Closed 14 years ago

#50 closed enhancement (fixed)

Detect support for --random option in NAT targets

Reported by: Victor Julien Owned by: Victor Julien
Priority: major Milestone: 0.7
Component: vuurmuur Version:
Keywords: Cc:

Description

In 0.5.74 alpha 6 the random option was introduced, but it's only available on recent distro's. Find a way to autodetect if the option is a available on the system. So far the only way I see is by adding a rule with the new option and see if that works:

iptables -t nat -A POSTROUTING -o abc0 -j SNAT --to-source 1.2.3.4

returns 0

iptables -t nat -A POSTROUTING -o abc0 -j SNAT --to-source 1.2.3.4 --nonexistant

returns 2

Maybe there should be a separate test chain for this purpose.

Change History (2)

comment:1 by Victor Julien, 15 years ago

Milestone: 0.60.7
Priority: blockermajor
Version: 0.5.74 alpha 6

comment:2 by Victor Julien, 14 years ago

Resolution: fixed
Status: newclosed

Closed by changeset:196

Note: See TracTickets for help on using tickets.