ipnat tcp

Gilberto Villani Brito linux at giboia.org
Mon Feb 13 10:35:16 PST 2006


In your rules, you didn't specify the protocol so the default of ipnat
is tcp.
For any rule using port, you need specify protocol.

Gilberto


On Sun, 12 Feb 2006 15:22:26 +0100 "Janne Rockstedt"
<rockstedt at telia.com> wrote:

> Hi all!
> 
> My ipnat.rules:
> map xl1 192.168.0.0/24 -> 0/32 portmap tcp/udp auto
> map xl1 192.168.0.0/24 -> 0/32
> map xl1 192.168.0.0/24 -> 0.0.0.0/32 proxy port 500 ipsec/udp
> rdr xl1 0/32 port 2222 -> 192.168.0.52 port 2222
> 
> My: # ipnat -l
> map xl1 192.168.0.0/24 -> 0.0.0.0/32 portmap tcp/udp auto
> map xl1 192.168.0.0/24 -> 0.0.0.0/32
> map xl1 192.168.0.0/24 -> 0.0.0.0/32 proxy port isakmp ipsec/udp
> rdr xl1 0.0.0.0/32 port 2222 -> 192.168.0.52 port 2222 tcp
> 
> 
> 
> Why is last raw on ipnat -l  showning TCP on port 2222?
> I have not used tcp in my ipnat.rules on the port 2222
> 
> //Jan
> _______________________________________________
> freebsd-ipfw at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
> To unsubscribe, send any mail to
> "freebsd-ipfw-unsubscribe at freebsd.org"
> 


More information about the freebsd-ipfw mailing list