LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-14-2018, 07:00 PM   #1
someguy007
LQ Newbie
 
Registered: Mar 2018
Posts: 10

Rep: Reputation: Disabled
Layer 3 with IPTABLES is it possible ?


Hello everyone and thank you for your comments ahead of time.

I have a Fiber ethernet connection from Comcast that is a layer 3.
I like to know if its possible with IPTABLES to create a firewall router with it using these parameters.

ISP: Layer 3 P2P /30
Gateway: 51.226.133.1
Netmask: 255.255.255.252
Layer 3 usable IP customer end: 51.226.133.2

ISP NAT POOL: /27
Range: 51.226.132.224/27
Usable Range: 51.226.132.225-254
Netmask: 255.255.255.224

Private Network IPs:
172.30.0.x/22 (Separate switch)
10.30.0.x/22 (Separate switch)
10.1.1.x/22 (Separate switch)

System Network adapters:
eth0(51.226.133.2)ISP
eth1(172.30.0.1)Network1
eth2(10.30.0.1)Network2
eth3(10.1.1.1)Office

So I can get IPTABLES to work with the first part but cant find information on the NAT Pool.
The NAT Pool will map to various resources www dns sftp ect....
Looking for a clean approach.
Thoughts?
 
Old 03-15-2018, 07:10 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Yes, it's possible. NAT is a table in iptables. It is used for exactly what you want to do. Here's an explanation of how to use it: https://www.karlrupp.net/en/computer/nat_tutorial
 
  


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
[SOLVED] IPTABLES Layer 3 NAT Pool someguy007 Linux - Networking 1 06-23-2018 10:35 AM
bridge layer 2 issues with iptables (using snort on CentOS 5.4) yngmike Linux - Networking 1 05-24-2010 12:48 PM
Passing info from MAC to network layer (cross layer) tassadaque Programming 1 12-31-2008 02:22 PM
Problems compiling iptables 1.4.0 with layer 7 patch NX-01 Slackware 0 07-04-2008 01:47 AM
simple way to make k9copy shrink dual layer to single layer DVD replica9000 Linux - Software 2 12-06-2007 02:41 PM

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

All times are GMT -5. The time now is 10:01 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