Se da un calculator in spatele unui ruter linux. Vreau sa redirectez  
niste porturi ale lui sa se vada din exterior. SSH pentru management is 
HTTP  pentru mrtg.  Fac redirectarilele in ruter

[EMAIL PROTECTED] ~]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DNAT       tcp  --  anywhere             xxx.xxx.xxx.xxx       tcp 
dpt:ssh2  to:192.168.100.2:22
DNAT       tcp  --  anywhere             xxx.xxx.xxx.xxx       tcp 
dpt:http2 to:192.168.100.2:80

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  192.168.100.213      anywhere
MASQUERADE  all  --  192.168.100.214      anywhere
MASQUERADE  all  --  192.168.100.2        anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Incerc din reteaua locala cu putty  catre xxx.xxx.xxx.xxx :ssh2 merge, 
browsing catre xxx.xxx.xxx.xxx:http2 merge.  Incerc din afara ssh-ul 
catre xxx.xxx.xxx.xxx:ssh2 da "no route to host" . Browsingul catre 
xxx.xxx.xxx.xxx:http2 merge.  in ruter pe input sunt deschise ssh2 si 
httpd :

ACCEPT     all  --  anywhere             anywhere            state 
RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW 
tcp dpt:ssh2
ACCEPT     tcp  --  anywhere             anywhere            state NEW 
tcp dpt:http2

Nu ma prind acuma unde e problema.


--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui