Results 1 to 2 of 2

Thread: Sharing internet connection over LAN?

  1. #1
    It's a gas!
    Join Date
    Jul 2002
    Posts
    699

    Sharing internet connection over LAN?

    Ive got 2 boxes on my network (RH7.3 and RH8) connected with a cross over cable.

    RH7.3 is connected to the internet using a dial up connection but i cannot access the internet using the RH8 box!

    My iptable rules on the RH7.3 box are as follows

    Code:
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    DROP       tcp  --  anywhere             anywhere           tcp dpt:smtp 
    DROP       tcp  --  anywhere             anywhere           tcp dpt:sunrpc 
    DROP       tcp  --  anywhere             anywhere           tcp dpt:x11 
    DROP       tcp  --  anywhere             anywhere           tcp dpt:sunrpc 
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    ACCEPT     all  --  anywhere             anywhere           state RELATED,ESTABLISHED 
    ACCEPT     all  --  anywhere             anywhere           
    LOG        all  --  anywhere             anywhere           LOG level warning 
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    and there are no rules specified on my RH8 box.

    Heres my /etc/sysconfig/network
    Code:
    NETWORKING=yes
    FORWARD_IPV4=true
    HOSTNAME='localhost.localdomain'
    My /etc/sysconfig/network-sripts/ifcfg-eth0
    Code:
    DEVICE=eth0
    IPADDR=192.168.0.1
    NETMASK=255.255.255.0
    NETWORK=192.168.0.0
    BROADCAST=192.168.0.255
    ONBOOT=yes
    BOOTPROTO=none
    USERCTL=yes
    /etc/sysconfig/network on the RH8 box as follows
    Code:
    NETWORKING=yes
    FORWARD_IPV4=true
    HOSTNAME='localhost.localdomain'
    GATEWAY=192.168.0.1
    GATEWAY_IF=eth0
    /etc/sysconfig/network-scripts/ifcfg-eth0 on the RH8 box
    Code:
    DEVICE=eth0
    IPADDR=192.168.0.2
    NETMASK=255.255.255.0
    NETWORK=192.168.0.0
    BROADCAST=192.168.0.255
    ONBOOT=yes
    BOOTPROTO=none
    USERCTL=yes
    My /etc/hosts on the RH7.3 box
    Code:
    127.0.0.1       localhost.localdomain   localhost
    192.168.0.1     localhost.server.com    server
    192.168.0.2     localhost.client.com    client
    And finally the /etc/resolv.conf on the RH7.3 box
    Code:
    server 192.168.0.1
    client 192.168.0.2
    search localdomain
    This is my first attempt at setting up a network and im clueless as to what im doing wrong or what i have not done...

    Anyone any ideas?

    Thanks in advance

  2. #2
    Senior Member RoadClosed's Avatar
    Join Date
    Jun 2003
    Posts
    3,834
    I have never done this with dial up and you have covered all the basics. I am now looking in the books at NAT as a starting point.

    What is routing eth0 traffic to the PPP interface on the server, they are separate entities? Open questions as I search

    OK.... later in the day.... you have to set up an IP masquerading server. It's a way to NAT and all refereces I could find to PPP sharing point that direction. Interesting... as expected I don't think you have a machanism in place to translate the static ip of the client to the public IP assigned by your ISP. This should do it.

    http://www.europe.redhat.com/documen...ade-HOWTO.php3
    West of House
    You are standing in an open field west of a white house, with a boarded front door.
    There is a small mailbox here.

Posting Permissions

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