bach_m Posted January 2, 2004 Share Posted January 2, 2004 i searched the forums for how to do this, but couldn't find anything, so here goes: i have a home network with 3 computers always behind it, but maybe another one in the summer. we have made a linux box into a firewall (ok, the ppl at the computer store did), and its running Red Hat Linux 6.something, maybe 6.2... i was hoping someone here could tell me how (or tell me a website where i can learn) how to use ipchains to forward a port to one of the computers within the network. i'm not completely clueless about linux; i'm reading Running Linux 4th edition (o'reilly), and have a basic understanding of how things work, permisions, etc. so if you can help, that'd be great. i tried to read the man page, but thats way too much info. my brother (he knows lots about linux) said something about masquerading, if that helps....... any ideas? 1 last thing... when i'm reading a man page, and i hit the end, how do i get out of it??? Link to comment Share on other sites More sharing options...
kemical Posted January 2, 2004 Share Posted January 2, 2004 for your man pages hit your <esc> key, then type :q ill look into ip masquerading and see if i can find some simpler info Link to comment Share on other sites More sharing options...
Jon Posted January 2, 2004 Share Posted January 2, 2004 http://www.hackorama.com/network/portfwd.shtml If you are too lazy to RTFM, and you are too lazy to google, then you're not going to get much help. /sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d xxx.xxx.xxx.xxx --dport 8888 -j DNAT --to 192.168.0.2:80 /sbin/iptables -A FORWARD -p tcp -i eth0 -d 192.168.0.2 --dport 80 -j ACCEPT Link to comment Share on other sites More sharing options...
kemical Posted January 2, 2004 Share Posted January 2, 2004 for your man pages hit your <esc> key, then type :q ill look into ip masquerading and see if i can find some simpler info http://www.ibiblio.org/pub/Linux/docs/HOWT...rade-HOWTO.html Link to comment Share on other sites More sharing options...
Recommended Posts