Date: Wed, 1 Jun 2005 17:49:26 +0200 From: =?WINDOWS-1252?Q?Matej_=8Aerc?= <matej.serc@gmail.com> To: freebsd-questions@freebsd.org Subject: Using multiple outside IPs on ADSL (PPPoE) connection Message-ID: <497fe93d05060108495868f1cb@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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:)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?497fe93d05060108495868f1cb>