Date: Wed, 6 Feb 2002 19:28:26 +0100 From: "Ivo" <ivo.corthals@planet.nl> To: <freebsd-questions@freebsd.org> Subject: port forwarding in /etc/ppp/ppp.conf Message-ID: <DPEDJBEEKPAHPGCAIHPJKEEKCBAA.ivo.corthals@planet.nl>
next in thread | raw e-mail | index | archive | help
Hi! I wanted to shift the web server from the gateway to a local machine which means I had to port forward to the local web server. I have other machines connected to the gateway via a hub, including the webserver-to-be, but for now the setup looks like this: adsl modem ______________ ______________ gateway webserver | | | | ______________ ______________ | ISP |>-------<| 10.0.0.138 |>-------<| 10.0.0.150 | | | |______________| |______________| | 192.168.1.1 |>-------<|192.168.1.124 | |______________| |______________| I am using a ppp/pptp connection with an alcatel adsl modem. According to literature all I need to do is add the line nat port tcp 192.168.1.124:80 80 BUT, it doesn't work. Has anyone got ideas? BTW, All the local machines can access the internet so NAT is working partly then. Hier are some conf files: ################################################################# # /etc/ppp/ppp.conf ################################################################# mxstream: set log Phase Chat LCP IPCP CCP tun command set authname *loginname* set authkey *password* set timeout 0 set ifaddr 0 0 add default HISADDR nat enable yes nat port tcp 192.168.1.124:80 80 ################################################################# # /etc/rc.conf ################################################################# defaultrouter="10.0.0.138" gateway_enable="YES" ifconfig_xl0="inet 10.0.0.150 netmask 255.255.255.0 media 10baseT/UTP" ifconfig_rl0="inet 192.168.1.1 netmask 255.255.255.0" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DPEDJBEEKPAHPGCAIHPJKEEKCBAA.ivo.corthals>