LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   iptables, do I need to NAT? (https://www.linuxquestions.org/questions/linux-networking-3/iptables-do-i-need-to-nat-864081/)

zazagor 02-21-2011 12:13 PM

iptables, do I need to NAT?
 
Hi,

I have the following config:

<real-IP>router<192.168.1.1> <--> <192.168.1.10>linux<192.168.8.1> <--> <192.168.8.100-199>pc-computers

The router is obviously not in bridge mode. Most internetaccess on PC-computers works fine, but some SSL VPN accesses does not work for example Citrix SSL VPN.

Even if I allow all traffic from a PC to internet on the linux (OUTPUT and FORWARD) it does not work.

One other think that does not work on PC's is video-streaming with Voddler.

Do I need to NAT 192.168.1.0-IP'S to the PC's? How do I do that?

For example do I need to NAT an IP like, 192.168.1.12 to a PC on the inside with the IP 192.168.8.106?

//zaZagor

kbp 02-21-2011 03:33 PM

You shouldn't .. does the router have a static route for the 192.168.8.0 network via 192.168.1.10 ?

besolius 02-22-2011 04:26 PM

in my knowledge you can not do routing if you use private addressing...

kbp 02-22-2011 05:20 PM

Quote:

in my knowledge you can not do routing if you use private addressing...
.. that's correct only when traffic needs to travel between a private network and the Internet, in this case the routing will be between the 192.168.1.0 and 192.168.8.0 networks. The router is the gateway between the internal networks and the Internet so it will be performing the NAT function.

cheers

besolius 02-22-2011 05:34 PM

yes you are right....was seeing only the private address...my fault

win32sux 02-23-2011 11:17 PM

linuxbasiccommand, isn't it enough that we allow you to include links to your blog in your signature? In the one day you've been a member here at LQ, you've included links to your blog in pretty much every one of your posts. That's outright abuse, and it's completely unacceptable. I'm giving you a mandatory 7-day vacation while we clean up after you, and rest assured that when your ban expires we'll be keeping a close eye on you. Hopefully, you'll modify your behavior, otherwise your LQ privileges will be permanently affected. As always, if you (or anyone else) wish to discuss this matter, you're welcome to contact me via email.



EDIT: Please note that the linuxbasiccommand's post has been deleted.

Hence, this warning may seem out of place to anyone who didn't see the post originally.

zazagor 02-28-2011 01:28 AM

No, the router does not have a static route for the 192.168.8.0 network via 192.168.1.10.
I will add that and see if it makes any difference.
Thanks for the suggestion.

//zaZagor


All times are GMT -5. The time now is 02:31 PM.