LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   help with iptables (https://www.linuxquestions.org/questions/linux-server-73/help-with-iptables-621032/)

mrlinux2000 02-14-2008 04:19 AM

help with iptables
 
this command will allow eevryone to get access on my lan but i want a specific address ip to have the access

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT \
--to 10.10.5.208:80
or if you can give me a better solution will be appreciated :

i have eth0 : internet 172.x.x.x
eth1 : LAN 10.x.x.x

and i want one in the exterieur to get acces on telnet and oracle port at the address 10.10.5.3

Brian1 02-14-2008 06:05 PM

Give this a try.

iptables -t nat -A PREROUTING -i eth0 -s 10.10.5.3 -p tcp --dport 80 -j DNAT \
--to 10.10.5.208:80

Brian


All times are GMT -5. The time now is 12:00 PM.