Using multiple outside IPs on ADSL (PPPoE) connection
Matej Šerc
matej.serc at gmail.com
Wed Jun 1 15:49:27 GMT 2005
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=sl&lr=&threadm=6261e7aa.0409030400.107b2db2%40posting.google.com&rnum=15&prev=/groups%3Fq%3D%2522freebsd%2522%2B%252B%2B%2522subnet%2522%2B%252B%2B%2522pppoe%2522%26start%3D10%26hl%3Dsl%26lr%3D%26selm%3D6261e7aa.0409030400.107b2db2%2540posting.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:)
More information about the freebsd-questions
mailing list