Saturday, August 23, 2008

Arno-Iptables-Firewall in Debian : Port Fowarding

Since I replaced Smc Wireless Router with Debian System. Internet connection failing problem is gone.This is make me exciting.And new requirement appear today.A user need to make a remote access to his host throught vnc.So make a port forwarding is needed.

I check debconf.cfg but it looks like nothing can be added.Then I search firewall.conf and find this:
# IP protocol forward example:
# (forward protocols 47 & 48 to 192.168.0.10)
# NAT_IP_FORWARD="47,48>192.168.0.10"

Obviously this is what I need. I added NAT_TCP_FORWARD="5900>192.168.1.10:5900" and restart the service.Then the port forwarding setting is worked ^^.

No comments: