dnat ouside/inside

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi all. i have this problem. this dnat rules work perfectly from outside
networks example . from a cybercafe, my home and all of outside network.

but when i connect my computer insede the lan 192.168.1.x this rules
dont working is any way to use this rules in the same network?


iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 110  -j DNAT
--to-destination 192.168.1.143
iptables -A FORWARD -i eth1 -o eth0 -p tcp -s 0/0 -d 192.168.1.143
--dport 110  -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25  -j DNAT
--to-destination 192.168.1.143
iptables -A FORWARD -i eth1 -o eth0 -p tcp -s 0/0 -d 192.168.1.143
--dport 25  -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 995  -j DNAT
--to-destination 192.168.1.143
iptables -A FORWARD -i eth1 -o eth0 -p tcp -s 0/0 -d 192.168.1.143
--dport 995  -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 465  -j DNAT
--to-destination 192.168.1.143
iptables -A FORWARD -i eth1 -o eth0 -p tcp -s 0/0 -d 192.168.1.143
--dport 465  -j ACCEPT





			200.0.20.2
			    |
			    |
			Firewall
			192.168.1.143
			    |
			    |
   -----------------------------------------------
		clients 192.168.1.x



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux