Hi, please help me.
I want redirect port from Internet to local host on external interface:
So, enable nat-redirect:
and create rule on external interface:
and create rule on internal interface for outgoing packets from internet to local host:
This do not work, but with word "pass" in string - work fine!
Please help, where error in string syntax for internal or external interfaces?
I want redirect port from Internet to local host on external interface:
So, enable nat-redirect:
Code:
....
rdr on $if_ext proto tcp from any port >= 1024 to $if_ext port 993 -> $lan_host
....
Code:
....
pass in on $if_ext proto tcp from any port >= 1024 to $if_ext port 993 keep state
....
Code:
...
pass out on $if_int proto tcp from any port >= 1024 to $lan_host port 993 keep state
...
Code:
....
rdr pass on $if_ext proto tcp from any port >= 1024 to $if_ext port 993 -> $lan_host
....