I'm trying to get a peculiar port forwarding script working.

The last part of it is this: I have a Windows box masqeraded by a Linux
box, with the linux box connected to a cable modem. If someone on the
Windows box wants to connect to say, www.windows.com, I want to redirect
them to the Linux boxes IP web server.

My best attempt was:

 iptables -A PREROUTING -t nat -p tcp -d 64.215.245.12 --dport 80 -j DNAT \
   --to 127.0.0.1:80

but this causes the connection to get dropped...

All of the examples I find concern re-mapping incoming connections, and
not out-going ones.

-- 
\ \/ / _       |~\  _ In God We Trust. All Others Pay Cash.
 >  < / \|\  /|+-< | |    "The world is a comedy to those that think,
/ /\ \\_/| \/ ||__)|_|     a tragedy to those who feel." - Horace Walpole



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to