LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-18-2017, 04:59 AM   #1
waranty92
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Rep: Reputation: Disabled
iptables nat pool binding


Hello everyone,

I am using linux box as router, I have SNAT with pool of public ip addresses. clients are having issue when some connections are initiated with one public ip another connections with another. Is it possible to translate each local ip-s connections with only one public ip from pool.
 
Old 10-18-2017, 02:50 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Yes, You can SNAT everything behind to a single IP Address.
 
Old 10-19-2017, 04:42 AM   #3
waranty92
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
solution is adding --persistent option in the end of line
 
Old 10-19-2017, 06:44 AM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
I was thinking more along the line of 'MASQUERADE'.
 
  


Reply



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
ip mac binding in iptables ekalavya Linux - General 4 07-30-2010 03:24 AM
iptables: can't initialize iptables table `NAT' linuxgentoo Linux - Kernel 3 01-17-2010 10:15 AM
iptables NAT to ip pool saavik Linux - Networking 1 10-02-2008 06:23 AM
NAT pool with iptables? doza Linux - Networking 1 11-24-2004 12:26 PM
NAT with Pool of valid IP persian Linux - Networking 3 07-20-2004 10:13 AM

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

All times are GMT -5. The time now is 01:28 AM.

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