clocker1996
11-27-2001, 09:18 PM
How can i make it so when 24.141.132.129 tries to make a connection attempt to 216.18.0.178 on port 80 it will redirect them to another ip:port ?? or another ip:80
Is this even possible?
This is for my own learning purposes
ive always wondered if you could.
CyberScript
11-27-2001, 10:33 PM
If you use a firewall (using ipfw) you can create a forwarding rule like this one..
add fwd 123.456.789.012,80 all from 24.141.132.129 to 216.18.0.178,80
not sure if that's exactly right but I know it's something like that.
Smirks
11-28-2001, 11:50 AM
You should be able to do this using mod_rewrite with apache.
Take a look at this wepage: http://www.engelschall.com/pw/apache/rewriteguide/
It's chock full of examples on how to use mod_rewite to do different things.
bitserve
11-28-2001, 04:19 PM
If you're using linux, and have ipvsadm compiled in, I prefer to use that for "port forwarding".
bobcares
11-29-2001, 05:58 PM
Another method is using natd.
Most unix boxes have an natd server.
Have a great day :)
Regards
amar