From owner-freebsd-questions@FreeBSD.ORG Wed Jun 1 15:49:27 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFAB016A41C for ; Wed, 1 Jun 2005 15:49:27 +0000 (GMT) (envelope-from matej.serc@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60E5343D53 for ; Wed, 1 Jun 2005 15:49:27 +0000 (GMT) (envelope-from matej.serc@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so2786027wra for ; Wed, 01 Jun 2005 08:49:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Mh8t9+4IooIRSIYU7xNfFqbgn88waoW8zpGMtiI79SE42z0cry7G/wYpmf1C7KE7jAJueAKOIhSj4F/zlpafH3MazZ7oNUJUGGCz2KSCcXwY+9VK6x4zqyAGXkxvrynIHYI2NX4pwPHRqI1atqAV0BIyc8ZOM0+JodT7R5dNnzI= Received: by 10.54.26.62 with SMTP id 62mr3246173wrz; Wed, 01 Jun 2005 08:49:26 -0700 (PDT) Received: by 10.54.18.34 with HTTP; Wed, 1 Jun 2005 08:49:26 -0700 (PDT) Message-ID: <497fe93d05060108495868f1cb@mail.gmail.com> Date: Wed, 1 Jun 2005 17:49:26 +0200 From: =?WINDOWS-1252?Q?Matej_=8Aerc?= To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Using multiple outside IPs on ADSL (PPPoE) connection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?WINDOWS-1252?Q?Matej_=8Aerc?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 15:49:27 -0000 Hi, until now we had one outside IP address and used FreeBSD machine to do NAT and run some mail and webserver for our needs. Few days ago we got a /30 subnet (netmask 255.255.255.252) and now, when I connect to ISP, I get only first IP of the subnet. Of course, while it's available, I would like to have some services "listening" on other IP addresses as well. I have searched a lot and I have found a guy, asking just the same as I am (http://groups.google.com/groups?hl=3Dsl&lr=3D&threadm=3D6261e= 7aa.0409030400.107b2db2%40posting.google.com&rnum=3D15&prev=3D/groups%3Fq%3= D%2522freebsd%2522%2B%252B%2B%2522subnet%2522%2B%252B%2B%2522pppoe%2522%26s= tart%3D10%26hl%3Dsl%26lr%3D%26selm%3D6261e7aa.0409030400.107b2db2%2540posti= ng.google.com%26rnum%3D15), but got no appropriate answer. Configuration file for ppp (/etc/ppp/ppp.conf) is at follows: default: enable lqr set lqrperiod 15 disable ipv6cp connection: set device PPPoE:rl0 set authname username set authkey pass nat enable yes nat same_ports yes nat use_sockets yes set dial set login set ifaddr first_ip_of_subnet 10.0.0.2/0 255.255.255.252 add default HISADDR Now, as also in that post from google, tun0 has only that IP address... I also tried to define second_ip_of_subnet with subnet mask 255.255.255.255 to rl0, but still that second IP isn't pingable from outside world. Thanks everyone for help:)