Networking Forums

Networking Forums > Computer Networking > Linux Networking > Iptables Snat problem (evrywhere router ip)

Reply
Thread Tools Display Modes

Iptables Snat problem (evrywhere router ip)

 
 
ArO
Guest
Posts: n/a

 
      05-09-2006, 11:56 AM
Hello,

i use snat postrouting to forward port from local users to local serwer
and i have problem, every where in local server *.1.2 i have in logs
router internet ip, why iptables dosen`t redirect with use original ip
address.. sorry for my english.

iptables -A POSTROUTING -t nat -o $LOCAL_DEV -j SNAT --to $INTERNET_IP
iptables -A POSTROUTING -t nat -p $PROTO $SRC -d $LOCAL_SERV_IP
--dport PORT_IN -j SNAT --to $LOCAL_IP:$PORT_OUT
iptables -A POSTROUTING -t nat $PROT -s $LOCAL_IP -d 0/0 -j SNAT
--to $EXT_IP
iptables -A POSTROUTING -t nat -s $CLIENT -d $IPS -j SNAT
--to $GATEWAY
iptables -A POSTROUTING -t nat -s $KTO -o $INTERNET_DEV -d
0/0 -j SNAT --to $INTERNET_IP
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selective SNAT using IPtables? Justin Todd Linux Networking 2 12-16-2005 04:36 AM
iptables SNAT and DNAT on same packets chris-usenet@roaima.co.uk Linux Networking 6 07-08-2005 09:19 AM
iptables/SNAT not working Steffen Koepf Linux Networking 2 02-03-2005 11:26 AM
iptables firewall/SNAT Cronus Linux Networking 2 12-13-2003 03:44 AM
iptables SNAT question (+) Den Linux Networking 0 10-28-2003 09:49 AM



1 2 3 4 5 6 7 8 9 10 11