2009/5/14 Miguel Da Silva - URI <mdasilva@fing.edu.uy>:
Eduardo Lopes escribió:
eth0 -> Rede Local
eth1 -> Link1
eth2 -> Link2
eth3 -> Link3
for links in `echo $LINK1 $LINK2`
do
$IPTABLES -t nat -A PREROUTING -p tcp -d $links --dport 8038 -j
DNAT
--to 172.16.1.14:80
done
$IPTABLES -t filter -A FORWARD -p tcp -d 172.16.1.14 --dport 80 -j
ACCEPT
$IPTABLES -t mangle -A PREROUTING -s 172.16.1.14 -j MARK --set-mark
49
$IPTABLES -t nat -A POSTROUTING -s 172.16.1.14 -j SNAT --to
$INET_LINK1
ip rule add fwmark 49 lookup 49 prio 49
ip route add default table 49 nexthop dev eth3 via $GW_LINK1 weight
49
O que não está
funcionando é o seguinte, minha rede (172.16.1.0/24) não consegue
acessar o meu ip externo, nem por browser, nem mesmo um telnet
<ip-externo> 8038 funciona. Preciso que minha rede consiga acessar
essa aplicação.