Results 1 to 2 of 2

Thread: Connection Sharing

Hybrid View

  1. #1

    Connection Sharing

    I have come across a tough problem. I have 3 linux computers. I will refer to them as PC1, PC2 and PC3. PC1 and PC2 connect to each other with serial radios over a few miles. I use ppp to connect them. PC1 is the "dial in" system and has an ip address of PC2 is assigned an IP of The connection works great. Now PC3 connects to PC1 via a wireless card. The application I am doing this for requires that PC3 and PC1 be connected via 80211. The connection between PC1 and PC3 works perfect. PC3 has an ip address of Now I can ping PC1 from PC3 and PC1 can ping PC2, but I cannot ping PC2 from PC3. I know that I cannot bridge wlan and ppp because of network layers 2 and 3, so I tried to use iptables to route the packets. I put in the following commands on PC1:

    iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

    iptables -A FORWARD -i ath0 -o ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPT

    iptables -A FORWARD -i ppp0 -o ath0 -j ACCEPT

    echo "1" > /proc/sys/net/ipv4/ip_forward

    But I still cant ping PC2 from PC3. Can anyone point me in the right direction? I have been googleing for 2 days with no luck. Thanks in advance for any help.

  2. #2

    use routing

    what is your gateway ip for all the 3 machines. try using routing software for it.

Similar Threads

  1. internet connection sharing
    By smith19 in forum Ubuntu / Debian
    Replies: 1
    Last Post: 08-20-2007, 07:42 AM
  2. internet connection sharing. Ubuntu
    By neodium in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 07-06-2005, 07:20 PM
  3. Internet Connection Sharing
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-30-2005, 12:46 AM
  4. How to Setup Internet Connection Sharing on
    By The Donald in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 10:35 PM


Posting Permissions

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