PC Router with ADSL PPoE

ADSL, or Asymmetric Digital Subscriber Line is a form of DSL technology. Characteristic of ADSL is its asymmetric, namely that the data transferred in a different speed from one side to the other side.

OK, following the step-by-step to make Ubuntu into a PC Server Router PPPoE (ADSL):

Preparation to make a PC router with PPPoE (ADSL) on Linux Server with Ubuntu :

  • PC Pentium 4 with 512 RAM and at least 2 (two) LAN Card
  • User Name and Password ADSLPPPoE connection, when you register on the Internet DSL Internet Service Provider (ISP) should we get a “user name and password”
  • Office LAN ip address, here I use the ip address 192.168.2.1/24

Network Configuration ADSLPPPoE Office:

Internet Provider — ADSL PPoE Router — LAN

In the PC Router with Linux Ubuntu Server is usually installed by default PPPoE package, so we live call via the terminal to configure it, the following command :

root@server:~# pppoeconf

Information :

Before doing the above commands make sure that eth0 is connected with a cable (UTP) from the ISP, because then eth0 will read the configuration from our ISP.

After doing the above command, it will display a menu of text-based programs, usually view these menus are as follows :

  1. Make sure that your Ethernet card is detected, here I use to connect ADSLPPPoE eth0 and eth1 for office LAN connection
  2. Enter your ADSL username, when you register on the Internet DSL Internet Service Provider should we get a “user name and password”
  3. Enter your ADSL password
  4. If you have a PPPoE connection configuration, you will be told that the configuration has changed
  5. Popular choices (Free options): You asked about the options ‘noauth’ and ‘defaultroute’ options and to remove ‘nodetach’ – choose “Yes”
  6. Using peer DNS (Use peer DNS) – choose “Yes”
  7. Limited MSS problem (Limited MSS problem) – choose “Yes”
  8. When you are asked if you want to connect the connection at start up, select “Yes” if that is what you want
  9. Finally you are asked if you want to immediately make the connection

When finished filling out the above menu will close the menu and please do the following command to activate the connection ADSLPPPoE:

root@server:~# Pon dsl-provider

If the above command is run normally supposed to have Linux Ubuntu Server can ping to yahoo.com, but the office LAN can not surf, then what steps can let me surf Office LAN? The following steps ….

for office LAN (eth0) can communicate with the outside world premises, please do the following :

First let’s edit the file /etc/sysctl.conf :

root@server:~# vim /etc/sysctl.conf

— By pressing the letter i please remove the signs on the fence

net.ipv4.conf.default.forwarding = file # 1, so that becomes “net.ipv4.conf.default.forwarding = 1″ (without the quotes)

– and please keep in pressing ESC: wq —

Furthermore, please do the following:

root@server:~# echo 1> / proc/sys/net/ipv4/ip_forward

and routing for eth1 to the outside world:

root@server:~# /sbin/iptables -t nat -A POSTROUTING -s 192.168.2.0/255.255.255.0 -d 0/0 -j MASQUERADE

In order to restart the PC Router ADSL PPPoE we do not do re-orders, then we must keep routing orders over the folder /etc/rc.local, the following steps :

root@server:~# Vim /etc/rc.local

pon dsl-provider
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -s 192.168.2.0/255.255.255.0 -d 0/0 -j MASQUERADE

Finally, finished already making PC Router ADSLPPPoE in Linux Ubuntu Server.

Publish on October 18th, 2011 under Ubuntu by udiniq | No Comments »

Berikan Komentar Anda

= 3+9 (Wajib dijumlahkan)