Date: Tue, 26 Sep 2000 11:32:23 +0200 From: Hanspeter Roth Bsag <roth@bsag.ch> To: freebsd-net@freebsd.org Subject: ppp nat port/addr conflict Message-ID: <20000926113223.A28035@bs11.bsag.ch>
next in thread | raw e-mail | index | archive | help
Hello, I'm trying to set up NAT to allow specific connections. The participating hosts are connected as follows: local client FreeBSD router remote host 1.0.0.2 <---> 1.0.0.1 2.0.0.1 <---> 2.0.0.2 ethernet ppp The local client has to connect to the remote host but with the router's address [1.0.0.2]. In the ppp.conf I have nat addr 1.0.0.2 2.0.0.1 This allows telnet and ftp connections from the local client [1.0.0.2] to the remote host [2.0.0.2]. (Interestingly I'm also able to connect to the remote host from the router itself.) Now I want a to allow a connection from the remote host to the router at a specific port. Thus I tried nat port tcp 2.0.0.1:6009 6009 127.0.0.1:6009 I'm aware that there is an address conflict since 2.0.0.1 is also diverted to the local client [1.0.0.2] by the `nat addr' command. I hoped that `nat port' would take precedence over `nat addr'. But packets to 2.0.0.1:6009 get diverted to the local client as well. Is there a means to resolve this conflict? -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000926113223.A28035>