Linux Netfilter discussions
 help / color / mirror / Atom feed
* VNC and two firewall
@ 2006-01-17 21:24 Matteo Manzinello
  0 siblings, 0 replies; only message in thread
From: Matteo Manzinello @ 2006-01-17 21:24 UTC (permalink / raw)
  To: netfilter

Hello,
In a LAN I need to connect remotly with VNC to a client computer with 
Windows OS. The problem is that there are two firewalls or better one is 
a modem/router zyxel and then there is firewall on a server Linux (that 
it is used as backup file and mail server and other services) and after 
that there are the PC clients of the LAN:
INTERNET (WAN) -- ZYXEL/FIREWALL -- LINUX FIREWALL -- PC LAN
About the modem/router Zyxel I noticed that there are sets called "SUA" 
where you can set the IP and the port where to connect VNC. But the 
problems is with Linux in a generic LAN. Where I have a Linux machine 
connect to Internet I have these rules:
iptables -t nat -A PREROUTING -i ippp0 -p tcp -m tcp --dport 5900 -j 
DNAT --to-destination 192.168.0.2:5900
iptables -A FORWARD -i ippp0 -p tcp --dport 5900 -m state  --state 
NEW,ESTABLISHED -j ACCEPT

so everything works. Do you think it is enought to leave open the ports 
of the Firework Zyxel (5900) and then to set the rules with iptables on 
Linux?

Thanks a lot!
Take care


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-17 21:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-17 21:24 VNC and two firewall Matteo Manzinello

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox