Results 1 to 1 of 1

Thread: linux router not working perfectly

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Thanked 1 Time in 1 Post
    Rep Power

    Default linux router not working perfectly

    hi, i want to use my PC as a router in linux, i feel that linux has more flexibility than any other OS,

    i manage to make PC as router, but its not working as expected.

    here this are the steps i have done,
    1. etho is connected to ISP in PC1 (router)
    2. eth1 is for PC2, i wrote in PC1 is "ifconfig eth1 netmask"
    3. eth2 is for PC3, i wrote in PC1 is "ifconfig eth2 netmask"

    PC2, PC3 are connected through eth0 respectively

    and some iptables rules
    ifconfig eth2 netmask up
    iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
    echo 1 > /proc/sys/net/ipv4/ip_forward

    PC2 and PC3 are got the internet connection via PC1, but when i use a tool to transfer the packet from PC2 and PC3 to PC1 then PC1 of eth1 (PC2 eth0) and eth2 (PC3 eth0) is not forwarding the packets to eth0 interface of PC1.
    Last edited by nany; 13th June 2011 at 06:39 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Linux Verify Keepalived Working Correctly For VIP
    By jerry in forum High Availability Cluster
    Replies: 1
    Last Post: 8th June 2010, 12:03 PM
  2. [Solved] Linux Diskquota Group Quota Not Working
    By kumarat9pm in forum CentOS / RHEL / Fedora
    Replies: 5
    Last Post: 1st June 2010, 10:53 AM
  3. yum not working and internet is not working in init 3 runlevel....
    By amarishvenugopal in forum Networking, Firewalls and Security
    Replies: 4
    Last Post: 25th May 2010, 01:58 PM
  4. Fedora Linux Mozilla Firefox Not Working
    By Goutam17 in forum Gnome
    Replies: 1
    Last Post: 10th August 2009, 10:49 PM
  5. 1 Router - 3 Networks - Big Help
    By phatlix in forum Networking, Firewalls and Security
    Replies: 0
    Last Post: 6th September 2007, 02:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts