Re: multihome network



my private IP that eventually resolves to public IP through PIX is
different then coming from my other public IP that assigned on my fxp1
that comes from another ISP, the fxp1 IP already configured this way
so it pass everything to my box

what i've tried is adding route on my box

route add 216.112.241.24 216.112.241.25 255.255.255.248

still not go:(


On Nov 16, 2007 8:54 AM, Steve Bertrand <iaccounts@xxxxxxxxxx> wrote:
Girish Venkatachalam wrote:
On 00:18:42 Nov 16, alexus wrote:
Hello,

I have two NICs on my box, one (primary) connected to switch and have
private IP. that IP also have a static route on Cisco PIX for
accessing this box from outside. the other interface has public IP
that is connected to another switch, i configure both IPs through
/etc/rc.conf, but I can not for some reason access my box through that
public IP, no firewall rules would prevent me from doing so. here is
my output for netstat -rn


-- snip

Your default route is 192.168.1.1 and not 216.112.241.24

Yes, but if he changes that, then he won't be able to access the box via
the PIX (private) connection.

I will make these assumptions, then elaborate:

The box in question is at your office. You are at home trying to access
it. The connection works by connecting to the public IP of the PIX (that
gets port-forwarded back), but does not work when accessing the direct
Internet facing port.

I'm willing to bet that if you run a tcpdump on your machine at home you
are attempting the connection to the 216.112.241.x IP, you will actually
find that the machine is getting back to you just fine. However, many
OS's will drop a 'spoofed' packet. Essentially what is likely happening
is this:

- you send from home a packet to 216.112.241.x.
- the office router/box accepts it
- the office router looks up in it's routing table a path back to your
home IP
- it has no particular route, so it sends it out the default gateway
(192.168.1.1)
- your pc at home notices that the packet was sent to a destination IP,
but it came back from a different one (the outside IP of the PIX)
- the packet is dropped as the source address is spoofed

There are a couple ways to fix this. The first and easiest is if you are
only trying to connect to this box's public IP from one location, add a
static route on the office box to that network that routes to it's
public upstream

The other way is to utilize policy-based routing. IPFW can do this, and
(from what I understand) so can PF. (In Cisco-land, you would use a
route-map).

Steve

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"




--
http://alexus.org/
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Can I use these two connections simultaneously?
    ... I also have a private internet ... connection. ... Which one is used for a particular connection is determined by the route ... Is there a VPN on the "private" network? ...
    (alt.internet.wireless)
  • Re: PPTP Clients loose connection to cisco PIX 506E after a while..
    ... A customer of mine have just gotten a new Cisco Pix 506E, ... I've heard is that they loose connection after a while, ... pdm location 213.179.57.7 255.255.255.255 outside ... timeout xlate 0:05:00 ...
    (comp.dcom.sys.cisco)
  • Re: PIX 501 help please!
    ... > PIX rebooted. ... (tried straight through and X-Over cables from PIX to modem) ... Checking the LEDs on the pix to ensure connection, ... enter and it should write the configuration to memory. ...
    (comp.security.firewalls)
  • PIX Firewalls cut-through proxy
    ... Cisco PIX handles HTTP connections? ... Cisco http connection management is as follows: ... In User Service and policy is checked, the PIX Firewall shifts ...
    (Security-Basics)
  • Re: PIX 501 help please!
    ... hyper terminal console. ... >> PIX rebooted. ... Checking the LEDs on the pix to ensure connection, ... > enter and it should write the configuration to memory. ...
    (comp.security.firewalls)