HELP because i'm desperated...

Discussion in 'macOS' started by onepic, Jun 1, 2012.

  1. onepic

    onepic MDL Novice

    Oct 7, 2011
    44
    5
    0
    #1 onepic, Jun 1, 2012
    Last edited by a moderator: Apr 20, 2017
    My ISP has changed the IP alocation by using DHCP from today instead static. Now because i use a linux (old RH 9.1) computer as gateway for my internal LAN i can't get the computers conected through it to get the internet. What i was do untill now:

    eth0 -> WAN

    ./etc/sys-config/network-scripts/ifcfg-eth0

    Code:
    DEVICE=eth0
    BOOTPRO=dhcp
    ONBOOT=yes
    eth1 -> LAN

    ./etc/sys-config/network-scripts/ifcfg-eth1

    Code:
    DEVICE=eth1
    BOOTPRO=static
    BROADCAST=192.168.200.255
    IPADDR=192.168.200.1
    NETMASK=255.255.255.0
    NETWORK=192.168.200.0
    ONBOOT=yes
    by using IP tables i use the following lines to do NAT:

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

    /sbin/iptables -t nat - A POSTROUTING -o eth0 -s 192.168.200.0/24 -j SNAT --to-source 5.x.x.x

    where 5.x.x.x is the IP is see they alocate to me by running if config command. Please help me because i feel i will pull my hair out :(...
     
  2. onepic

    onepic MDL Novice

    Oct 7, 2011
    44
    5
    0
    Never mind... problem fixed.
     
  3. SOCRATE_MMXII

    SOCRATE_MMXII MDL Expert

    Jan 25, 2012
    1,034
    315
    60
    Please be kind and post your solution here maybe others can use it to solve a similar problem.
    Thank you. ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. pierrejaquet

    pierrejaquet MDL Member

    Jan 14, 2010
    124
    31
    10
    Please always post answer to thread. There are already billions of useless threads you get when you search for a solution on google. Let's make the internet a better place. :cool:
     
  5. SOCRATE_MMXII

    SOCRATE_MMXII MDL Expert

    Jan 25, 2012
    1,034
    315
    60
    #5 SOCRATE_MMXII, Jun 4, 2012
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...