Results 1 to 2 of 2

Thread: Linux based connection sharing

  1. #1
    Join Date
    Mar 2008
    Posts
    382

    Linux based connection sharing

    Linux has a very powerful IP stack built into the operating system. Linux itself has the capability of routing user LAN to the internet with NAT or Network Address Translation (explain NAT). In the Linux world this is often called IP Masquerading.


    one of the favorite way to use Linux as a router is with a micro-distribution. There are versions of Linux out there that run off of a single floppy disk. Using one of these distributions, you can convert an old, unused computer (even a 486!) into a capable broadband router. Since the software fits on a floppy, then user don’t even need a hard drive in the system! Most of the micro-distributions of Linux routers have minimum requirements of a 386 with 16Mb of memory.
    Cyote Linux has a very cool installation and configuration method. Cyote Linux starts with a Windows program. Run it, and you can actually configure the router in Windows. Next, a program creates a bootable floppy disk that has your fully configured Linux broadband router!

  2. #2
    Join Date
    Mar 2008
    Posts
    382
    To masquerade (internet connection sharing in Windows language ) on Linux with windows there are few lines of iptables and ip_forward commands.

    First of all you have to flush and delete existing firewall rules.

    So flush rules by typing in terminal:
    iptables -F
    iptables -t nat -F
    iptables -t mangle -F

    Now delete these following chains:
    iptables -X
    iptables -t nat -X
    iptables -t mangle -X

    It's Now time to save the iptables rules so type:
    service iptables save
    service iptables restart

    Now all rules and chains have been cleared!
    Check it in /etc/sysconfig/iptables which has all default rules set to accept.
    Now open /etc/rc.d/rc.local and insert the line:
    echo "1" > /proc/sys/net/ipv4/ip_forward

    And then save and close the file.
    Assuming that internet interface is eth0, type:
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    service iptables save
    service iptables restart

    Now the iptables will be set to start during boot up.

Similar Threads

  1. Linux based OS just for RDP
    By aMARAN in forum Operating Systems
    Replies: 4
    Last Post: 15-10-2010, 11:36 AM
  2. Connection Sharing using squid
    By Jensen Ackles in forum Networking & Security
    Replies: 4
    Last Post: 17-05-2010, 10:13 AM
  3. Use Linux router for the Sharing a broadband connection
    By Solaris in forum Technology & Internet
    Replies: 4
    Last Post: 17-02-2010, 05:44 AM
  4. Linux Based SmartPhone
    By samualres in forum Portable Devices
    Replies: 5
    Last Post: 16-12-2009, 10:18 AM
  5. Internet Connection Sharing in CPL
    By Swetlano in forum Networking & Security
    Replies: 3
    Last Post: 18-03-2009, 11:17 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,679,843.38464 seconds with 17 queries