Skip to content

Dail-up Connection Sharing

1. Introduction

The only reason I am including this here in this day and age is just for legacy reasons. Not too long ago, 2003/04, I was still using this setup in order to share dail-up in my house and just to be fair you can use this to share any kind of connection. This means that you can use the steps below in order to use your Linux machine as a home-brew router.

2. Configuring Networking

I am assuming that you have not tried hooking up the two or more PC so I am going to start from scratch. An important thing to note is that if you dual boot with any Windows version that has the Connection sharing capabilities and you have it enabled YOU HAVE TO USE THE IPs I have in here, otherwise when you are in Windows and you are online the Windows Connection Sharing WILL NOT work, so make sure you follow the instructions correctly.
So you have your network card plugged in, you have your modem up and running, but now your mom
needs to get on the internet and she is definitely not a Linux lover. Well lets start setting up the network
so we can keep your mom happy:

2.1 Configuring Slackware

  1. Log in as root
  2. In your console run netconfig
  3. Go through first few windows where you specify the name of your machine and the host name you
  want to have
  4. The third window you should see is SETUP IP FOR "your host name"
  5. Click on Static IP
  6. You are going to be prompted a window and you are going to put 192.168.0.1 in it.
  That is going to be your IP on your home network.
  7. Leave the default net mask as 255.255.255.0
  8. When you are asked for a gateway just hit enter, when you are asked if you are going to run name
  server click no, and after that you should be good to go.
  9. You are going to be prompted for your network card to be detected just let the
  program find the module for your card (if the system has that module compiled)
  10.If netconfig tells you that you don’t have the module for your network card than you better find out
  what your card name is and compile it in the kernel (if you don’t know how to do that go and
  read the Kernel-HOWTO at www.linuxdocs.org).

2.2 Configuring Windows

  1. Log in as administrator
  2. Right click on network neighborhood
  3. Right click on local connections
  4. Then click on TCP/IP protocol and go to properties (if you don’t have the protocol installed just hit install) go to
  Protocols and select TCP/IP and click install.
  5. There click use static IP: in the IP box put 192.168.0.2 then go to netmask and enter 255.255.255.0 and for the
  default gateway enter 192.168.0.1
  6. Now for DNS services you are going to add the IP your ISP (Internet Service Provider) had provided you
  with if you don’t know it then Connect to the Internet in windows and then go to Start/Run and type winipcfg
  (this might be a w2k option only) and a window with at least 2 IP’s will be shown.
  Those two are the two DNS servers provided by your ISP. Put them both in the DNS service at the TCP/IP
  configuration.
  7. Click ok and go back to your Slackware machine.

3. Setting up the connection sharing

Well her goes the most exciting part of the exercise. Setting up the sharing script.
So start up your favorite text editor (I usually use Pico for simple editing) and copy this script:

   echo "1" > /proc/sys/net/ipv4/ip_dynaddr
   iptables -F
   iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
   iptables -A INPUT -i ppp0 –source 192.168.1.0/24 -j DROP
   iptables -A INPUT -i ppp0 –source 10.0.0.0/8 -j DROP
   iptables -A INPUT -i ppp0 –source 172.16.0.0/12 -j DROP
   iptables -A FORWARD -i eth0 -j ACCEPT
   iptables -A FORWARD -m state –state ESTABLISHED,RELATED -j ACCEPT
   iptables -A FORWARD -m limit –limit 5/minute –limit-burst 5

The first iptables line is flushing the iptables rules. The second is setting your ppp0 ( your modem )
interface to masquerading, the third linedenies any connection to your ppp0 interface from the three "C" class
IP’s used for home networking, the forwarding lines are the ones that are doing the magic they are allowing your
Network Card to be used as an ISP that serves the 192.168.0.2 PC. That’s it you are done. Now exit and save do
chmod a+x filename then do cp filename /usr/bin and now you are good to go. You are all set.
Now if you want to have I-net sharing AND a Firewall you can copy the script at the end of this file instead of
just the lines above and then just follow the steps below.

OK, here is the way to make this script startup at boot all you have to do is follow these simple steps:
  1. cd /etc/rc.d/
  2. pico rc.local
  3. put a line in here that says something like:
  echo "I-net sharing and Firewall is being started up."
  4. put this line right below the echo line:
  /usr/bin/filename (where filename is the name of the file that you put the scrip in)
  5. save and exit
  6. either reboot the machine or just do ./rc.local and you are set.

Now go to the Windows computer and try connecting to a site. If you did everything right you should be
able to surf the net without any problem. If you want to be able to do dial on demand go to
www.sourceforge.net and do a search for daild there is a good HOWTO on configuring diald on www.linuxdocs.org.
COMMENT: I am thinking about trying to setup daild on my box and if I do I will post a new
mini Howto on how to set that up too :).

4. Some Security Additions

Well everything is cool now and you have your network connection sharing up and running.
Here are a few tips on how to make you computer and network a little more secure.
  1. log in as root and go to /etc
  2. pico(or whatever your favorite text editor is) hosts.deny. Now put this line in there:
  ALL: ALL
  This deny’s any access to any service(that is controled by inetd) on your PC.
  The bad thing is that you blocked yourself and your network too that way :).
  3. No worries just do pico hosts.allow and put this in there:
  ALL: 127.0.0.1
  ALL: 192.168.0.
  Now you have granted access to the services to your localhost and your network.

That’s it now you can go and edit the inetd.conf file and comment in all the services you don’t need.

Hot NEWS about Tramadol - fedex online tramadol, tramadol no prescription no fees overnigh, purchase tramadol overnight, tramadol bulk no prescription, buying tramadol online without prescription, tramadol online cheap, 180 ct tramadol with, need to buy cheap tramadol and pay by, 180 tramadol cheap with, cheap tramadol no prescription nextday shipping, tramadol online discount, tramadol no prescription needed, 150 tramadol, compounding drugs tramadol, no prescription required for tramadol, tramadol hci, purchase tramadol, tramadol online prescription, 180 tramadol with cod, online tramadol purchase, what is tramadol, Tramadol prescription, tramadol fed ex, tramadol free overnight shipping, medication tramadol, us tramadol, next day delivery tramadol with no script, by money order order tramadol, overnight tramadol hcl, tramadol cheap order by 3pm, tramadol without perscription, cod tramadol delivery, tramadol saturday delivery no rx, tramadol cod, order tramadol no rx, 8000 cheap online tramadol under, how easy is it to buy tramadol online, no prescription needed tramadol, tramadol generic name, tramadol without prescription cheap, tramadol online saturday delivery, tramadol overnight delivery cheap, cheap tramadol without prescription overnight delivery, buy cheap tramadol online inurl, cheap tramadol prescriptions, tramadol no doctor prescription, tramadol no dr contact, Tramadol shipped to florida, order tramadol online by fedex, tramadol saturday, tramadol no prescription required 200 tablets, tramadol 50 mg, buy tramadol for saturday delivery, tramadol order overnight shipping, buy tramadol pay by cod, tramadol cod saturday delivery, discount cheapest tramadol online, buy information tramadol, online prescription tramadol, tramadol on line prescriptions, tramadol ultram, tramadol withdrawals, tramadol cheap easy, tramadol online si, cheap cod online sold tramadol, tramadol rx, online tramadol order, tramadol hcl 50 mg tab, fedex tramadol, tramadol cod overnight delivery, tramadol addiction and withdrawal, online prescription tramadol without, online tramadol no rx, cod online tramadol, buy tramadol cash on delivery, overnight tramadol order, best buy tramadol, buy tramadol 300mg, pain medications tramadol, tramadol overnight delivery, tramadol c.o.d overnight delivery, canada tramadol no prescription, buy tramadol on line, tramadol 150 tablets, tramadol generic names, tramadol cheap overnight, cheapest online tramadol, buy mexico online pharmacy tramadol, tramadol cheap online, drug information tramadol, tramadol cod delivery, cheap discount tramadol 120 pills, tramadol 180 tablets free fedex, drug tramadol tablets, tramadol without a rx, order discount tramadol, tramadol cod pharmacy, low cholesterol diet cheap tramadol, tramadol overnight fed ex, tramadol dosage, tramadol drug addiction, tramadol on line, buy tramadol without prescription pay cod, pharmacies tramadol pay, tramadol dod drug tests, pharmacy tramadol hcl dosing, tramadol no dr, buy tramadol cheap, cheap discount tramadol, overnight buy tramadol, order cheap tramadol no rx online, tramadol orders cod, cheap tramadol cod saturday delivery, 100mg tramadol, purchase tramadol without a prescription, lowest price of tramadol, tramadol pay, tramadol 180 overnight shipping, cheap tramadol saturday delivery, online tramadol overnight delivery, tramadol drug interaction, tramadol with, buy tramadol 400mg, cheap tramadol order, buy cheapest tramadol, Cheap tramadol NO RX, where to buy tramadol, order tramadol cod, tramadol ups c.o.d., tramadol in mexico without prescription, tramadol 4 50mg tablets, cheap fedex tramadol, discount tramadol overnight delivery, cheap tramadol prescriptions online, overnight delivery tramadol purchase, online tramadol buy, online pharmacy fedex C.O.D tramadol, buy now tramadol, pharmacy tramadol, online tramadol without rx, prescription tramadol drug, tramadol online consultation, buy tramadol no prescription, tramadol overnight shipping, cod tramadol no prescription, cheap prescription tramadol without, cheap tramadol fedex overnight, tramadol ups, tramadol cheap discount, tramadol 180 ct cheap, online pharmacy cod tramadol, cheap tramadol c.o.d., tramadol cheap next day, online tramadol with delivery, tramadol online cod shipping, buy drug tramadol, how to get a doctor to prescript tramadol, hydrochloride low cost tramadol, buy tramadol tablets, buy tramadol order cod, buy tramadol discount, order cheap tramadol no prescription, online tramadol no prescription, tramadol fast delivery, online pharmacy tramadol 24 hours, tramadol cod online orders, discount tramadol purchase, hydrochloride tramadol, buy tramadol overnight delivery, tramadol pain medication arthritis, tramadol with no presciption, zantac tramadol, buy no rx tramadol, buy prescription tramadol without, order tramadol online cod, tramadol hcl for anti depression, tramadol drug screen, cheap tramadol overnight, order tramadol online without prescription, low price tramadol no prescription, cheapest tramadol, tramadol drug utilization review, buying tramadol without a prescription, buy tramadol medication cod, order tramadol online, buy discount tramadol now, cheap tramadol next day shipping, tramadol same day delivery, buy tramadol online consultation us, order pharmacy tramadol, online pharmacy fedex cod tramadol, tramadol hydrochloride synthesis, Buy cheap tramadol online, no prescription medications cheap tramadol vallium, tramadol cheap cod, tramadol no prescription overnight cod delivery, tramadol 30 pills x 100 mg, tramadol 100 mg overnight, tramadol 180 tablets, tramadol online discount cheap, tramadol discount codes, buy tramadol apap, buy prescription tramadol, tramadol shipped with, low price tramadol without prescription, tramadol COD next day, buy discount tramadol online, tramadol in us pharmacy pay by, zenegra tramadol prescriptions, tramadol payment, purchase tramadol discount, only tramadol free consult, Buy no prescription online tramadol, tramadol free consultation, Cash on deliver Tramadol overnight, cheap legal tramadol for sale, tramadol online overnight shipping, tramadol without a presciption, information on tramadol, cheap 120 tramadol, Tramadol no prescription pharmacy discounter, california discount pharmacy tramadol, order cheap tramadol online, no rx tramadol, tramadol 120 pills cheap, tramadol 50 mg 100 tablets, tramadol cash on delivery, order tramadol online from mexico, buy tramadol online by, us tramadol fedex, tramadol and effexor, tramadol next day delivery, tramadol shipping, tramadol cash on delivery overnight, overnight tramadol without prescription, cheapest tramadol available online, pharmacies for tramadol pay w phone, buy cheap tramadol 50 mg, order tramadol by, cheap order tramadol, online purchase tramadol, 50 mg tramadol, symptom tramadol withdrawal, order cheap tramadol, order tramadol cash on delivery, tramadol antidepressant, cheap priced tramadol, tramadol free fedex shipping, tramadol online no perscription, tramadol online fedex priority overnight, buy tramadol pay by check, overnight delivery tramadol buy, buy tramadol hcl 50mg, order tramadol hcl with cod, tramadol fedex no prescription, buy tramadol with cod, buy tramadol online with next day shipping, no overnight prescription tramadol, buy cheap tramadol, tramadol saturday delivery, drug tramadol, pharmacies tramadol pay by, Buy tramadol index, order tramadol to uk, delivery online prescription saturday tramadol, buy tramadol online from oregon, tramadol no prescription cash on delivery, tramadol no script required express delivery, buying tramadol without a script, overseas tramadol cheap, tramadol overnight delivery saturday, tramadol drug, tramadol no rx needed cod accepted, tramadol cheap 120 pills, cod tramadol online, cheap order prescription tramadol, buy tramadol without prescription, buy tramadol onlines, online tramadol overnight, tramadol 200 tablets, cheap discount online tramadol, tramadol 50mg, cheap tramadol buy, online pharmacy tramadol, tramadol c.o.d. saturday delivery, buy tramadol drug, cheap tramadol no rx, tramadol 180 pills x 100 mg, tramadol without presciption, Buy Tramadol Online Overnight Fedex Delivery, where can i buy real tramadol online, discount tramadol fast delivery, buy tramadol 100mg, snorting tramadol, overnight delivery tramadol cheap, buy tramadol cheap cod, purchase tramadol overnight delivery, buy tramadol overnight, overnight tramadol cod, cheap tramadol no prescription 180ct, tramadol pay by, overnight tramadol, tramadol hydrochloride zydol, 100 mg tramadol, tramadol cod no script, cheap tramadol free shipping, cheap tramadol very, purchase tramadol without prescription, tramadol fedex shipping, TRAMADOL ONLINE FEDEX COD FREE CONSULT, tramadol overnight no prescription, tramadol prescription from doctors online, tramadol hydrochloride capsules, tramadol drug guide, overnight delivery tramadol discount, Tramadol Cash Delivery Cod, cheapest overnight tramadol, online online tramadol, fedex tramadol online cod, arthritis medicine tramadol, weekend orders for tramadol discount, tramadol 90 pills x 100 mg, get discount tramadol now, buy cheap tramadol here, tramadol order, tramadol online accept paypal, tramadol no rx, buy a tramadol, buy tramadol online no prescription, tramadol india, overnight tramadol no rx, buy tramadol hydrochloride, tramadol delivered overnight, overnight delivery tramadol online, drug metabolism inhibition tramadol, us tramadol cod sales, overnight tramadol online, real tramadol in us pharmacy, tramadol shipped on saturday, tramadol very cheap, tramadol ship to 50 states, tramadol best price, drug hydrochloride inhouse store tramadol, tramadol without rx, no prescription saturday delivery tramadol, tramadol drug medication, buy tramadol with no prescription, tramadol without doctor rx, Tramadol cheap no rx free from india, discount tramadol without rx, cheap tramadol buy online, online order overnight tramadol, tramadol hydrochloride contraindications loratadine, com online tramadol, buy discount tramadol no prescription, tramadol 180, buy tramadol without a prescription online, tramadol ultracet online accept paypal, cheap online tramadol, buy tramadol 37.5/325 Mg, by delivery saturday tramadol, buy tramadol without perscription, discount tramadol, tramadol without prescription, purchase tramadol no rx, purchase discount tramadol, link moveto online tramadol, buy tramadol 37.5, tramadol prescription consultations +, generic tramadol no prescription overnight, tramadol and overnight, cheap compare price tramadol, tramadol xr online, no prescription cheap tramadol, tramadols overnighted cod, tramadol withdraw, tramadol 120 tablets, very cheap tramadol, tramadol fedex overnight, tramadol pay cod, tramadol without a prescription and cod delivery, cheap cod tramadol, buy tramadol cheap medication inurl, phentermine tramadol viagra, no prescription tramadol fedex delivery, purchase tramadol shipping, tramadol pay by cod, tramadol 270 pills x 100 mg, Free Shipping on Tramadol Orders, tramadol and premature ejaculation, purchase tramadol without rx, tramadol 100 tablets, keywords buy tramadol, cash on delivery tramadol, ordering tramadol online, tramadol cod next day, best cheap tramadol, tramadol 60 pills x 50 mg, tramadol cash delivery, online cheap tramadol prescription, tramadol generic fedex no prescription, tramadol no prescription overnight, order tramadol without prescription, pharmacies tramadol cod, tramadol with fedex and no prescription, tramadol florida pharmacy, overnight tramadol purchase, overnight tramadol ups cod, tramadol overnight COD, buy tramadol without a prescription overnight delivery, order tramadol cod saturday, tramadol and prozac interactions, tramadol with free fedex overnight, tramadol online without prescription, cheap tramadol drugs md, online pharmacy no prescription tramadol, cheap tramadol free delivery, next day fedex shipping for tramadol, buy cheap tramadol no Prescription, buy discount tramadol, tramadol shipped, overnight tramadol discount, discount tramadol online, tramadol drug screens, cod tramadol money orders, tramadol cheap overnight fedex, no prescripton tramadol, tramadol perscription on line, cheapest tramadol overnight, pharmacies for tramadol pay, no rx tramadol cod, ultracet tramadol, tramadol cod accepted, cheap tramadol, buy tramadol cheap cod no rx, order tramadol cheap, buy tramadol online cod fast turn around time, tramadol fedex delivery, cheap tramadol over night, buying tramadol cod, is tramadol a narcotic, tramadol buy, overnight tramadol saturday delivery, buy tramadol depression, order tramadol online with cod, no prescription tramadol, cheap prescription tramadol, buy tramadol where, com buy cheap tramadol, tramadol next day cash on delivery, tramadol no consultation fees, buy tramadol online money order, online overnight shipping tramadol, tramadol medicine, buy tramadol 200mg, buy tramadol overnight via electronic check or, buy tramadol online without a prescription, buy tramadol by check, medicine called tramadol, buy 150 tramadol tablets, no prescriptions needed for tramadol, online tramadol cod, by tramadol online for cod, tramodol tramadol 180 tablets, tramadol overnight online, 180 ct tramadol payment options, buy no rx tramadol online, tramadol medicine pay, tramadol 120 pills x 100 mg, tramadol online Cash on Delivery, buy cheap tramadol online, tramadol cheap tramadol, tramadol on line no prescription, cheap tramadol pills online, tramadol 100mg, online tramadol without prescription, tramadol delivery, Tramadol no prior rx needed, tramadol prescription online, tramadol without prescription overnight shipping, tramadol overnight cod, buy cod guestbook.html inurl tramadol, generic tramadol, 180 ct tramadol payment with, cod tablet tramadol, tramadol purchase, 180 tramadol cheap, prescription what is tramadol, buy tramadol money order, doctor online prescription tramadol, tramadol 50 mg tablets, tramadol hydrochloride, online pharmacy tramadol next day, tramadol cod saturday delivery fedex, non generic tramadol no prescription, discount tramadol without prescription, buy tramadol online by cod, Buy cheap Tramadol online, tramadol without a prescription, tramadol online pharmacy, cod cheap tramadol, buy tramadol with paypal, tramadol oxycodone buy fedex, cheap tramadol overseas pharmacy, Tramadol on sale, overnight delivery tramadol, buy tramadol free consultation, tramadol drug no prescription, tramadol no script, buy tramadol from a usa pharmacy without a prescription, tramadol 60 pills x 100 mg, tramadol hydrochloride ultracet, cheap tramadol by money order, next day tramadol, tramadol online free consultation, cheap tramadol no prescription, 180 tramadol tablets with, discount tramadol order, by cod tramadol, generic name tramadol, tramadol no rx overnight, tramadol generic, tramadol 180 cheap cod, Tramadol and description, purchase tramadol online, tramadol cheap price, Tramadol orders C.O.D., tramadol hcl, order tramadol cheap no membership fees no prescription, tramadol online uk, prescription and drugs tramadol injection, online doctor consultation for tramadol, tramadol withdrawal symptom, buying tramadol in us pharmacy, tramadol online fed ex, tramadol cod shipping, tramadol no prescription no consultation, tramadol cheapest online, generic tramadol hcl online, prescription tramadol, tramadol 120 pills x 50 mg, tramadol hydrochloride tablets, cheap tramadol prices usa, without prescription tramadol, Tramadol medication, buy low price tramadol, cheap online pharmacy tramadol, tramadol addiction, pharmacy online tramadol, tramadol hydrocodone 10mg, tramadol 120, buying tramadol online, cheap tramadol 180ct, buy tramadol overnight fedex, Buy cheap tramadol us online, cheap tramadol online, drug testing tramadol, 120 cheap tramadol, buy tramadol online 150 pills, how to get tramadol without, where can i buy tramadol no prescription, tramadol shipped cod, tramadol buy fedex, tramadol medication, tramadol hydrochloride tablet, buy online tramadol, online pharmacies tramadol, buy tramadol cheap medication, tramadol with next day delivery without prescription with free shipping, buying online tramadol, no rx needed for purchasing tramadol, cheap tramadol without prescription, tramadol free overnight cod, tramadol no prescription, shipping tramadol, tramadol pharmacies 200ct cod, tramadol and online, tramadol free saturday delivery, tramadol prescriptions online saturday delivery, tramadol pharmacy, Real tramadol online, zoloft tramadol interactions, fedex overnight tramadol, tramadol online img, tramadol and gabapentin, buy cheap tramadol overnight, buy tramadol now, cheap tramadol with free shipping, tramadol next day, tramadol tablets, buy tramadol online no script with cod, order tramadol next day delivery, detox diet buy tramadol, order cheap tramadol without prescription, cheap tramadol discount, tramadol with cash on delivery, Buy Tramadol 50mg, cheap tramadol overnight free, tramadol shipped cod only, tramadol for sale, tramadol buy on line, tramadol overnight, tramadol prescription, tramadol cheap no rx required canada, buy tramadol without, cod tramadol, buy tramadol without rx, ship tramadol to arkansas payment, buy discount tramadol free shipping, cheap tramadol no prescription next day delivery, tramadol buy in UK, Tramadol free overnight shipping, pharmachies for tramadol pay cod, tramadol 180 count by cash on delivery, hcl medication tramadol, Tramadol oral, buy tramadol shipping free, ranitidine cheap tramadol,