[Firehol-support] Port porwarding

Thomas Arendsen Hein thomas at intevation.de
Wed Jun 21 14:38:46 BST 2006


* Pieter Steyn <pieter at clue.co.za> [20060621 14:43]:
> server_rdp_ports"tcp/3389 tcp/3390 tcp/3391"
> client_rdp_ports"any"
> 
> server rdp accept  dst "10.0.0.110 10.0.0.111 10.0.0.100"
> 
> I want connections to port 3390 sent to 10.0.0.110 on port 3389.  And 
> connections to port 3391 sent to 10.0.0.111 on port 3389, and default 3389 to 
> 10.0.0.100 on default 3389.

dnat to "10.0.0.100" dst "$my_ext_ip" proto "tcp" dport "3389"
dnat to "10.0.0.110:3389" dst "$my_ext_ip" proto "tcp" dport "3390"
dnat to "10.0.0.111:3389" dst "$my_ext_ip" proto "tcp" dport "3391"

And you only need server_rdp_ports="tcp/3389", because this is what
ther router will see due to the dnat rules.

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/




More information about the Firehol-support mailing list