/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */


hey guys

im new to iptables... i used to use ipmasqadm with ipchains to portforward 
to internal machines no problem but i just cant seem to get it with 
iptables. at the moment my ruleset/script is just the one from the howto as 
i am still learning... im on holiday now thought and want to get through to 
a machine behind the firewall. using a command like this:

iptables -A PREROUTING -t nat -p tcp -d $EXTIP --dport 80 -j DNAT --to 
10.0.0.2:80

or iptables -t nat -A PREROUTING -d $EXTIP -p tcp --dport 3389 -j DNAT --to 
10.0.0.2

doesnt work. i need ports 21 80 and 3389... what am i doing wrong?? i am 
just typing the commands into the console (ofcourse putting the IP in place 
of $EXTIP!) as i can get into the linux box with ssh, and i can use lynx on 
that box to get to my internal machine, so it is the portfarwarding that is 
failing.

i would appreciate some help! im guessing i need to put the commands at a 
different place in the script or something as the commands do not report 
errors.

thanks guys
Nathan

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- 
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to