Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.
|
|||||||
Begin your free trial now
Pay-as-you-go options starting at $10/user/month
Pay-as-you-go options starting at $10/user/month
iptables SNAT-DNAT
|
|
Thread Tools | Search this Thread |
|
#1
|
||||
|
||||
|
iptables SNAT-DNAT
Hey guys.
I having a serious issue with my network. I will map it out first for you, so you can get a view of what is going on. Ok, we have a cable connection coming into a linksys router acting ONLY as a switch, not a router =] from there we go into a Slackware linux Box with 2 NIC's. Connecting 2 unlike networks. a 192.168.1.0 network and a 192.168.10.0 network. The 10.0 network is subnetted into 2 networks. Now, my problem is this: I have the slackbox acting as a router right, but i dont want my webserver open to the public..sort of...So i put the webserver on the 10.0 network. I set the linksys router to forward all HTTP requests on port 80, to the slack box, and from there (the slack box) i have it going to the web server. Sounds right, right? wrong. using this iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 192.168.10.x (x being webserver IP) This works so that the outside can view the page, and here i thought it worked great! So, we tested www.google.com..and up came our website...da hell? Tried another site, and another and another..all our web site. Great...lol. Any idea what command can fix this..the network is pretty solid as far as everything else goes though. |
![]() |
| Similar Topics | ||||
| Topic | Replies | Forum | ||
NAT SNAT DNAT Problems New to IPTABLES and linux networking
|
2 | Storage and Networking | ||
IPtables tutorial
|
1 | The Alternative OS | ||
Iptables / ipchains
|
5 | The Alternative OS | ||
| Thread Tools | Search this Thread |
|
|
All times are GMT -4. The time now is 11:30 PM.



NAT SNAT DNAT Problems New to IPTABLES and linux networking