Re: ip masquerade

From: Alexander Dalloz (ad+lists_at_uni-x.org)
Date: 01/20/05

  • Next message: jim lawrence: "Re: Beware of bind-9.2.4-8_FC3:20 (was BIND (Network Manager Strikes Again!!!!))"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Thu, 20 Jan 2005 17:04:56 +0100
    
    
    
    

    Am Do, den 20.01.2005 schrieb naxis um 16:30:

    > these are some details about my network.
    > I'm trying to to share the internet with a linux machine.
    > I can communicate with skypie but cannot surf the net and connot chat
    > messengers.

    It is skype - and about which "messenger" are we talking? There are
    several with similar names but using different ports.

    > Network
    >
    > eth0 get dynamic ip address from the router(192.168.11.4)
    > eth1 FC3 local dhcp server (IP:192.168.1.1 GW:eth0)

    Which "router" are you talking about? Besides the FC3 gateway host there
    exists another router?

    192.168.11.0/24 is the net between the FC3 host and the real internet
    connection device, right? Why does the FC3 host for eth0 get then a
    dynamic IP? Switch over to a static IP.

    192.168.1.0/24 is your internal net, means between the FC3 gateway and
    your other LAN hosts? Why does eth1 get a dynamic IP? Use a static one.
    Why a gateway setting for eth1 pointing to eth0?

    After changing the IPs to be static ones for both ethernet devices
    please post the /etc/sysconfig/network-scripts/ifcfg-eth[0,1] contents.
    Be sure you have set GATEWAY only in /etc/sysconfig/network, and there
    it is eth0.

    > I run
    > iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.0/24 -j MASQUERADE

    You can leave out the source net instruction. Run "service iptables
    save" to make this rule static and loaded automatically each time the
    iptables service is started. Any other filter rules active?

    > "route -n" gives
    > Destination Gateway Genmask Flags Metric Ref Use Iface
    > 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
    > 192.168.11.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
    > 0.0.0.0 192.168.11.1 0.0.0.0 UG 0 0 0 eth0

    Looks properly.

    > I can communicate with skypie so I think the internet sharing is OK but
    > I cannot surf the net and cannot communicate with messengers

    What is the content of /etc/resolv.conf and /etc/hosts? Which nameserver
    settings and gateway settings do the hosts inside the LAN have?

    Alexander

    -- 
    Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
    legal statement: http://www.uni-x.org/legal.html
    Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.10-1.9_FC2smp 
    Serendipity 16:47:27 up 6 days, 9 users, load average: 0.54, 0.57, 0.70 
    
    

    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    


  • Next message: jim lawrence: "Re: Beware of bind-9.2.4-8_FC3:20 (was BIND (Network Manager Strikes Again!!!!))"

    Relevant Pages

    • Re: More Peer 2 Peer Troubles
      ... but No I only have one gateway in use in the NIC ... Only the Host has been connected to the ... Clientto the internet so as to directly link with the internet mainly ... all machines, not just the host. ...
      (microsoft.public.windowsxp.network_web)
    • Re: After restarting Destination host unreachable
      ... is connected to internet switch. ... gateway: 192.168.12.1 ... routing techniques, there can be only one listed in your routing table. ... You'll have to use a packet sniffer, but some host (possibly your own ...
      (linux.redhat)
    • No Response
      ... The host system I am trying to call into is running XP Pro with a netopia ... I can ping the gateway IP number from a remote computer. ... I can't connect with the remote connection timing out. ... when connected to internet.) ...
      (microsoft.public.windowsxp.work_remotely)
    • Re: Network problem
      ... If you want someone to get out onto the internet set ... > their default gateway to the ip address of the main computer Leave ... ventilation; avoid extreme temperatures and store in a cool, ... away from open flames, naked flames and old flames; avoid inhaling fumes; ...
      (alt.os.windows-xp)
    • RE: SBS 2003 periodically keeps losing default gateway
      ... the gateway is set manually. ... looks like there were remains of the Internet wizard setup left in RRAS as ... This newsgroup only focuses on SBS technical issues. ...
      (microsoft.public.windows.server.sbs)