|
From: Michael R. <mic...@gm...> - 2004-05-23 14:23:11
|
On Friday 21 May 2004 01:39, seb wrote: > Hello, > I have 2 network net1 (192.168.0.) and net2 (192.168.1.) > the VPN server is running on a machine in net1 (192.168.0.2) > the firewall has an external IP of (a.b.c.d) and internal IP (192.168.0.1) > and only port N=C2=B0 5000 is opened on the firewall to only the VPN serv= er. How > to connect the VPN server throught the firewall ? You have to forward port 5000 from your firewall to port 5000 at 192.168.0.= 2.=20 This can be done easily with iptables: iptable -t nat -A PREROUTING -i ppp0 -p udp --dport 5000 -j DNAT --to=20 192.168.0.2 where ppp0 is your connection to the internet, e.g. DSL. CU =2D-=20 |Michael Renner E-mail: mic...@gm... | |D-72072 Tuebingen Germany ICQ: #112280325 | |Germany Don't drink as root! ESC:wq |