Networking Forums

Networking Forums > Computer Networking > Linux Networking > routing without eating up my IPs

Reply
Thread Tools Display Modes

routing without eating up my IPs

 
 
/dev/null
Guest
Posts: n/a

 
      08-13-2004, 05:02 PM
I'm trying to make the best of a bad deal. I've been given a contiguous
range of public IPs that don't exactly fit into one subnet. The IPs are
..91 - .101

I want to set a firewall up in front of this range and don't mind losing one
public IP for the firewall's external NIC. But I really don't want to waste
an IP on the firewall's internal NIC.

I could always set up DNAT and set the internal systems up with private IPs.
I may end up just doing it all this way anyway.

What I'm wondering, is there a way I can set up the internal machines with a
public IP and have the firewall/gateway system not use one of the public.
It would look like this, but I'm just not sure how the routing will work
out:

Internet

|
|

.91
FIREWALL
?.?.?.?

|
|

.92 .93 .94 .95 ...
SERVER SERVER SERVER SERVER SERVER


I see something like this with my ISP where the cable modems have 10.x
addresses, yet there are public IPs on both sides of the modem.

Thanks for any insight!


 
Reply With Quote
 
 
 
 
Alexander Clouter
Guest
Posts: n/a

 
      08-13-2004, 06:21 PM
On 2004-08-13, /dev/null <(E-Mail Removed)> wrote:
> I'm trying to make the best of a bad deal. I've been given a contiguous
> range of public IPs that don't exactly fit into one subnet. The IPs are
> .91 - .101
>
> I want to set a firewall up in front of this range and don't mind losing one
> public IP for the firewall's external NIC. But I really don't want to waste
> an IP on the firewall's internal NIC.
>
> [snipped]
>
> I see something like this with my ISP where the cable modems have 10.x
> addresses, yet there are public IPs on both sides of the modem.
>

I'm a 'bad' person and do some voodoo tricks on my routing table to recover
'lost' IP's which local machines are determined to think are the
network/broadcast addresses. I posted online all the details so I'll simply
throw you the URL

http://bbs.adslguide.org.uk/showthre...=&view=&sb=&o=
http://bbs.adslguide.org.uk/showthre...=&view=&sb=&o=

The ideas there can be used in your situation, you have to just think
carefully about what you are borrowing 'nextdoor'. As a hint, as most
braindead remote firewall admins think having .0 and .255 as an IP address is
a bad thing (useless excuses about Smuff attacks or something defunct) no one
dishes out these IP's as half the Internet is unobtainable with them.
However in your situation you can 'borrow' an entire /24 and then tweak the
routing table with proxy_arp including to make sure traffic ends up in the
right place.

Have fun

Alex
 
Reply With Quote
 
Allen Kistler
Guest
Posts: n/a

 
      08-13-2004, 07:08 PM
/dev/null wrote:
> I'm trying to make the best of a bad deal. I've been given a contiguous
> range of public IPs that don't exactly fit into one subnet. The IPs are
> .91 - .101
>
> [snip]
>
> I could always set up DNAT and set the internal systems up with private IPs.
> I may end up just doing it all this way anyway.


You can proxy arp the other IPs on the outside interface, DNAT/mangle
the packets, then route the packets through your internal interface.
This would be the recommended approach.

> What I'm wondering, is there a way I can set up the internal machines with a
> public IP and have the firewall/gateway system not use one of the public.
> It would look like this, but I'm just not sure how the routing will work
> out:
>
> Internet
>
> |
> |
>
> .91
> FIREWALL
> ?.?.?.?
>
> |
> |
>
> .92 .93 .94 .95 ...
> SERVER SERVER SERVER SERVER SERVER


You can define both firewall interfaces to be on similar subnets and
define explicit routing entries to override all the default ones. That
way lies a headache, though.

> I see something like this with my ISP where the cable modems have 10.x
> addresses, yet there are public IPs on both sides of the modem.


What you see with your ISP is
PC -- modem -- modem service -- Internet
The PC and the Internet have public addresses.
The modem and modem service have 10.x addresses to talk to each other.
Also there's DOCSIS encapsulation between the modem and modem service.
Bottom line: different from what you want to do.
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      08-14-2004, 04:33 AM
On Fri, 13 Aug 2004 17:02:19 GMT, /dev/null <(E-Mail Removed)> wrote:
> I'm trying to make the best of a bad deal. I've been given a contiguous
> range of public IPs that don't exactly fit into one subnet. The IPs are
> .91 - .101
>
> I want to set a firewall up in front of this range and don't mind losing one
> public IP for the firewall's external NIC. But I really don't want to waste
> an IP on the firewall's internal NIC.
>
> What I'm wondering, is there a way I can set up the internal machines with a
> public IP and have the firewall/gateway system not use one of the public.
> It would look like this, but I'm just not sure how the routing will work
> out:
>
> Internet
>
> |
> |
>
> .91
> FIREWALL
> ?.?.?.?
>
> |
> |
>
> .92 .93 .94 .95 ...
> SERVER SERVER SERVER SERVER SERVER


You can use the same .91 IP on both sides of the firewall, but its public
interface should have netmask 255.255.255.255 and broadcast same as that
IP. You would likely enable proxy_arp for the public interface so it
would answer the public side for any IPs behind it..

The inside interface would have whatever netmask covers the most IPs, and
host route for any that fit outside the pattern.

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
/dev/null
Guest
Posts: n/a

 
      08-16-2004, 05:23 PM
thanks all, looks like proxy arp was exactly what I was looking for.

Thanks again,

/dev


 
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
WS08 networking services blocking internet, eating 50% CPU a.k.a. Windows Networking 2 03-23-2009 01:23 PM
Win2003 R2 server just stops routing traffic until I restart Routing service Martijn Tonies Windows Networking 8 11-03-2008 11:05 AM
Any easy way to find out who is eating up server bandwidth boe Windows Networking 3 03-18-2008 06:24 AM
I not find the NAT/Basic Firewall under Routing\IP Routing mtczx232@yahoo.com Windows Networking 2 12-16-2006 04:08 PM
d-link dwl-g650 eating cpu Chucky Wireless Internet 0 11-27-2003 01:42 AM



1 2 3 4 5 6 7 8 9 10 11