redirect port from externt world to my vpn client does not w
Posted: Thu Mar 10, 2011 4:55 pm
HI
i got Openvpn working since years but now things had chance so.. i need now to redirect a port from my eth1 (internet) to my client port 5901.
INTERNET ------------------------ FIREWaLL----------------------TUN------------------------CLIENT(10.0.0.74)
|
|
|
|
|
LAN (192.168.0.0)
|
|
MI PC
i can see my clients with pings to/from my lan clearly. but if a just apply a rule:
iptables -t nat -I PREROUTING -i eth1 -p tcp --dport 4501 -j DNAT --to 10.0.0.74:5901
just nothing happens. does not work the redirecction.
i do a nmap from outside:
PORT STATE SERVICE
5900/tcp filtered vnc
what can i do to acheive this?
i got Openvpn working since years but now things had chance so.. i need now to redirect a port from my eth1 (internet) to my client port 5901.
INTERNET ------------------------ FIREWaLL----------------------TUN------------------------CLIENT(10.0.0.74)
|
|
|
|
|
LAN (192.168.0.0)
|
|
MI PC
i can see my clients with pings to/from my lan clearly. but if a just apply a rule:
iptables -t nat -I PREROUTING -i eth1 -p tcp --dport 4501 -j DNAT --to 10.0.0.74:5901
just nothing happens. does not work the redirecction.
i do a nmap from outside:
PORT STATE SERVICE
5900/tcp filtered vnc
what can i do to acheive this?