redir ::= "rdr" ifname ipmask dport "->" ip [ "," ip ] rdrport rdroptions .
dport ::= "port" portnum [ "-" portnum ] .
rdrport ::= "port" portnum .
dport poate sa fie interval de porturi iar rdrport nu.
<GRESIT>
rdr ed0 xxx.xxx.xxx.xx/32 port 50000-50100 -> 192.168.100.1 port 50000-50100
</GRESIT>
<CORECT> rdr ed0 xxx.xxx.xxx.xx/32 port 50000-50100 -> 192.168.100.1 port 50000 </CORECT>
Daca pui 60000 in loc de 50000, atunci 50000-50100 se translateaza in 60000-60100
PS
Daca te gandesti cumva sa folosesti pf faci asa:
rdr on de0 proto tcp from any any to port 50000:50100 -> 192.168.100.1 port 50000:*
are cineva idee cum poti defini o plaja de porturi sa fie redirectionate cu rdr in ipnat.rules
as avea nevoie de redirectionat tot ce vine pe 50000 pana la 50100
deocamdata am reusit doar asa:
rdr ed0 xxx.xxx.xxx.xx/32 port 50000 -> 192.168.100.1 port 50000 rdr ed0 xxx.xxx.xxx.xx/32 port 50001 -> 192.168.100.1 port 50001 rdr ed0 xxx.xxx.xxx.xx/32 port 50002 -> 192.168.100.1 port 50002 rdr ed0 xxx.xxx.xxx.xx/32 port 50003 -> 192.168.100.1 port 50003 ........................................................................................................... rdr ed0 xxx.xxx.xxx.xx/32 port 50100 -> 192.168.100.1 port 50100
Am incercat si cu 50000:50100 si 50000 >< 50100 si nu merge... primesc urmatoarea eroare:
__________________________________________________________ Send 'unsubscribe rofug' to [EMAIL PROTECTED] to unsubscribe

