LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2011, 12:13 PM   #1
zazagor
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
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
 
Old 02-21-2011, 03:33 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You shouldn't .. does the router have a static route for the 192.168.8.0 network via 192.168.1.10 ?
 
Old 02-22-2011, 04:26 PM   #3
besolius
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Rep: Reputation: 1
in my knowledge you can not do routing if you use private addressing...
 
Old 02-22-2011, 05:20 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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
 
Old 02-22-2011, 05:34 PM   #5
besolius
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Rep: Reputation: 1
yes you are right....was seeing only the private address...my fault
 
Old 02-23-2011, 11:17 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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.

Last edited by win32sux; 02-28-2011 at 06:17 PM.
 
Old 02-28-2011, 01:28 AM   #7
zazagor
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables: can't initialize iptables table `NAT' linuxgentoo Linux - Kernel 3 01-17-2010 10:15 AM
iptables nat kernelvn Linux - Networking 5 05-03-2005 11:39 AM
IPTABLES : build NAT using IPTABLES joseph Linux - Networking 4 04-23-2004 05:08 AM
iptables and NAT arrruken Linux - Networking 8 10-03-2003 04:17 AM
IPtables +NAT daromer Linux - Networking 1 01-07-2002 11:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration