iptables: internet -> firewall -> PC -> modem(ISDN) to PC:5900

iptables: internet -> firewall -> PC -> modem(ISDN) to PC:5900

Secure Home | Search | About
 Networking Firewalls    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
iptables: internet -> firewall -> PC -> modem(ISDN) to PC:5900 Ekkard Gerlach 03-10-2008
Posted by Ekkard Gerlach on March 10, 2008, 5:11 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Hi

I've very small experiences with iptables and don't know how to realise

PC -> internet -> Firewall:3333 -> myPC -> modem(ISDN, europe) to
externalPC:5900

In words: I want to realise VNC-access to a desktop of an external PC
that is only reachable by modem(ISDN) to a PC, that has Internet acccess
only. MyPC is router Internet -> modem(ISDN)-line.

Where should I start to realise? Dividing the thing into two parts,
internet -> Firewall -> PC (part1) und PC -> per ISDN auf PC:5900 (part2)?

I've already tested without success:

Part 2:
=======
iptables -A PREROUTING -t nat -i ippp0 -p tcp --sport 5900 -j DNAT
--to-destination 192.168.0.52:3333
iptables -A FORWARD -i ippp0 -p tcp --sport 5900 -j ACCEPT
iptables -A FORWARD -o ippp0 -p tcp -s 192.168.0.52 -d 192.168.10.1
--dport 5900 -j ACCEPT

After that I can't access localhost:3333 ! No service! Why is there no
connection to 192.168.10.1?

Part 1: (typed in on my firewall)
=======
iptables -A PREROUTING -t nat -i ppp0 -p tcp --sport 3334 -j DNAT
--to-destination 192.168.0.52:3333
iptables -A FORWARD -i ppp0 -p tcp --sport 3334 -j ACCEPT
iptables -A FORWARD -o ppp0 -p tcp -s 192.168.0.52 --dport 3334 -j ACCEPT

As well as above: "connection refused"

What's my fault?

firewall: dyndns-Adresse, port e.g. 3334
myPC: 192.168.0.52 , port 3333
externalPC: 192.168.10.1 port 5900 (vnc)

danke schon mal
Ekkard

Similar ThreadsPosted
Applying iptables firewall rules: iptables-restore: line 19 failed August 31, 2005, 2:58 am
iptables article: Learning iptables from scratch - feedback appreciated April 20, 2005, 12:33 pm
newbie Q on DSL modem w/firewall appliance January 15, 2005, 8:09 pm
cannot capture traffic between dsl modem and firewall January 27, 2005, 10:39 pm
changing ZA firewall & modem NAT settings October 20, 2006, 3:35 am
How to access cable modem "in front of" firewall July 20, 2007, 3:07 pm
Comodo firewall conflict with ADSL modem? August 3, 2007, 8:23 am
Linksys BEFSX41 Firewall router + ADSL2 Modem December 27, 2005, 6:01 pm
Firewall Tests Lower after Adding DSL Modem/Router July 25, 2006, 5:20 pm
IP / modem March 13, 2006, 5:02 pm

The site map in XML format XML site map

Contact Us | Privacy Policy