Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2006 16:36:17 -0200
From:      Gilberto Villani Brito <linux@giboia.org>
To:        freebsd-ipfw@freebsd.org
Subject:   Re: ipnat tcp
Message-ID:  <20060213163617.79d2695c@giboia>
In-Reply-To: <00a701c62fdf$bfe75860$3401a8c0@PCCompaq>
References:  <00a701c62fdf$bfe75860$3401a8c0@PCCompaq>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
> To unsubscribe, send any mail to
> "freebsd-ipfw-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20060213163617.79d2695c>