From owner-freebsd-questions Wed Feb 6 10:28:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp07.wxs.nl (smtp07.wxs.nl [195.121.6.39]) by hub.freebsd.org (Postfix) with ESMTP id 4857737B425 for ; Wed, 6 Feb 2002 10:28:28 -0800 (PST) Received: from win2000 ([213.10.130.108]) by smtp07.wxs.nl (Netscape Messaging Server 4.15) with SMTP id GR4JBE01.ZCT for ; Wed, 6 Feb 2002 19:28:26 +0100 From: "Ivo" To: Subject: port forwarding in /etc/ppp/ppp.conf Date: Wed, 6 Feb 2002 19:28:26 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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