Networking Forums

Networking Forums > Computer Networking > Linux Networking > non-masquerading firewall

Reply
Thread Tools Display Modes

non-masquerading firewall

 
 
FEEB
Guest
Posts: n/a

 
      01-29-2004, 07:27 PM
I have built a number of NAT systems in several countries, which use
reserved IP addresses for their masqueraded networks (192.168.0.0/16,
10.10.0.0/16, etc.). I am familiar with IP tables.

Now I would like to build a system, that would just forward packets from
eth0 to eth1. Both NIC would operate in the same IP block.
That would give me an opportunity to filter out undesirables in both
directions, while making all my machines visible from outside.

I looked over HOWTO's and miniHOWTO's, but they all deal with NAT systems,
not just strict forwarding.

Before I start reinventing the wheel, I would like to see some solutions
already available in public domain.
Could anyone please point me to a source of info on this subject?

Thanks


Frank Bures, <(E-Mail Removed)>


 
Reply With Quote
 
 
 
 
Lew Pitcher
Guest
Posts: n/a

 
      01-29-2004, 07:54 PM
On Thu, 29 Jan 2004 15:27:08 -0500 (EST), "FEEB" <(E-Mail Removed)>
wrote:

>I have built a number of NAT systems in several countries, which use
>reserved IP addresses for their masqueraded networks (192.168.0.0/16,
>10.10.0.0/16, etc.). I am familiar with IP tables.
>
>Now I would like to build a system, that would just forward packets from
>eth0 to eth1. Both NIC would operate in the same IP block.
>That would give me an opportunity to filter out undesirables in both
>directions, while making all my machines visible from outside.
>
>I looked over HOWTO's and miniHOWTO's, but they all deal with NAT systems,
>not just strict forwarding.
>
>Before I start reinventing the wheel, I would like to see some solutions
>already available in public domain.
>Could anyone please point me to a source of info on this subject?


It seems to me that this is simpler than you think.

If you aren't doing NAT, then you just need ACCEPT or DROP rules. As for
forwarding, you leave that up to the Linux TCP/IP stack by setting the
/proc/sys/net/ipv4/ip_forward value to 1.

--
Lew Pitcher
IT Consultant, Enterprise Technology Solutions
Toronto Dominion Bank Financial Group

(Opinions expressed are my own, not my employers')
 
Reply With Quote
 
FEEB
Guest
Posts: n/a

 
      01-30-2004, 11:29 AM
On Thu, 29 Jan 2004 20:54:04 GMT, Lew Pitcher wrote:

>On Thu, 29 Jan 2004 15:27:08 -0500 (EST), "FEEB"

<(E-Mail Removed)>
>wrote:
>
>>I have built a number of NAT systems in several countries, which use
>>reserved IP addresses for their masqueraded networks (192.168.0.0/16,
>>10.10.0.0/16, etc.). I am familiar with IP tables.
>>
>>Now I would like to build a system, that would just forward packets from
>>eth0 to eth1. Both NIC would operate in the same IP block.
>>That would give me an opportunity to filter out undesirables in both
>>directions, while making all my machines visible from outside.
>>
>>I looked over HOWTO's and miniHOWTO's, but they all deal with NAT

systems,
>>not just strict forwarding.
>>
>>Before I start reinventing the wheel, I would like to see some solutions
>>already available in public domain.
>>Could anyone please point me to a source of info on this subject?

>
>It seems to me that this is simpler than you think.
>
>If you aren't doing NAT, then you just need ACCEPT or DROP rules. As for
>forwarding, you leave that up to the Linux TCP/IP stack by setting the
>/proc/sys/net/ipv4/ip_forward value to 1.


So, you just assign those two NIC's two different IP addresses from the
same IP block?


Frank Bures, <(E-Mail Removed)>


 
Reply With Quote
 
John Doe
Guest
Posts: n/a

 
      01-30-2004, 02:46 PM
In article <(E-Mail Removed) ronto.ca>
, FEEB wrote:
> I have built a number of NAT systems in several countries, which use
> reserved IP addresses for their masqueraded networks (192.168.0.0/16,
> 10.10.0.0/16, etc.). I am familiar with IP tables.
>
> Now I would like to build a system, that would just forward packets from
> eth0 to eth1. Both NIC would operate in the same IP block.
> That would give me an opportunity to filter out undesirables in both
> directions, while making all my machines visible from outside.
>
> I looked over HOWTO's and miniHOWTO's, but they all deal with NAT systems,
> not just strict forwarding.


Each NIC needs to be on a UNIQUE network for a routing table to be able
to determine which interface to route traffic. To create a router that
connects two networks that are from the same block you need to use
static NAT in both directions to hide the fact that they are the same
network (and routing decisions can therefore be made correctly). If you
just want a range of machines to be available on your network then you
can just simply forward packets out of your iptables box unaltered (no
need of nat table just use the filter table) and put in rules (again in
the filter table) to allow restricted access back to those IP's. This
however is a bad idea IMHO since a compromise of one of those hosts
(remember that security doesn't stop with allowed/disallowed ports)
would lead to further INTERNAL hosts being compromised.

Fluffy

--
woof woof
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server 2008 with Hyper-V - domain controller - Firewall GUI's show firewall ON, but netsh reports firewall OFF Bruce Sanderson Windows Networking 7 10-07-2008 09:57 AM
Suse 10 DNS, firewall, or masquerading problem? Ger Linux Networking 6 12-09-2005 04:18 PM
Help with firewall/masquerading problem Alex Meov Linux Networking 5 06-05-2004 08:08 PM
IP Masquerading Tejas Kokje Linux Networking 1 04-14-2004 02:42 AM
Masquerading Ali Rafeek Linux Networking 1 01-03-2004 04:33 PM



1 2 3 4 5 6 7 8 9 10 11