alice gate2 plus and snat to my backend servers

Discussion in 'Technical' started by gabrix, Oct 13, 2007.

  1. gabrix

    gabrix New Member

    I have an alice gate 2 plus , it's a 4 ethernet ports modem , so it's a router , no it's a modem and it has one ethernet port for a decoder sky tv , an another port has a telepnone for voip , on one port i sticked a linuxbox as gateway router firewall and has two antennas for wi-fi , i left one port unused.It has as a lan ip 192.168.1.1 and all machines (voip,decoder tv and wi-fi) are going to be in this subnet 192.168.1.0/24 and no possibility to change it. I need to go with the wi-fi laptop to my internal net where i have my webserver and also on the linux box gateway that has a second interface eth1 with ip 10.0.0.1.What sort of SNAT do i better use?
    Code:
    $IPT -t nat -A POSTROUTING -o eth0 -s 192.168.1.0/24 -j SNAT --to 192.168.1.2 
    or
    Code:
    $IPT -t nat -A POSTROUTING -o eth0 -s 192.168.1.0/24 -j SNAT --to 10.0.0.1
    i Tryied both but none seems to work.
    192.168.1.2 is eth0 linuxbox first interface packets has to arrive to 10.0.0.1 eth1 second interface and 10.0.0.0/24 gateway.
    I don't know any clue ?????
     

Share This Page