port forwarding

Taking care of your Linux box.
Post Reply
cyph3r
Lance Naik
Posts: 46
Joined: Tue Jan 22, 2008 1:27 am

port forwarding

Post by cyph3r »

fedora 7

eth1 (wan) = 192.168.1.3
eth2 (lan) = 193.1.1.1

mujha port forwarding karni hai

port hai 8291


waiting for your good replies
thanx in advance.
Regards,
Mehmood Ahmed |cyph3r|
(+92)345-2835810
E-mail:cyph3r.07@hotmail.com
imzee
Lance Naik
Posts: 17
Joined: Fri Sep 14, 2007 2:30 pm
Location: Saddar

Post by imzee »

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 8291 -j DNAT --to-destination xxx.xxx.xxx.xxx:8291

[xxx.xxx.xxx.xxx = Ip address of local machine whre port 8291 running
Imtiaz Mustafa
CCENT, CCNA, JNCIA
Cell : +923452828799
e-mail : imtiazmustafa@hotmail.com
Post Reply