| Author |
Message |
bradmbreer@yahoo.com *nix forums beginner
Joined: 30 Mar 2005
Posts: 13
|
Posted: Thu Mar 31, 2005 4:32 pm Post subject:
Re: OpenBSD box returning wrong IP
|
|
|
Obviously if the Windows box is receiving responses from the traceroute
there is an entry for the 192.168.0.0/24 network in the routing table
on the openbsd gateway.
There's is nothing wrong with the 255.255.255.255 in the Windows
routing table. The windows box would never arp for the mac address of
192.168.215.254 because it's on a different network. When the windows
box does the adjacency test on the 192.168.215.254 address it realizes
it's on a different network and knows that it must send that packet to
its default gateway, so it arps for the mac address of it's default
gateway, 192.168.0.254.
How the windows "discovered" the 192.168.225.254 was via the ICMP TTL
message from traceroute.
Try giving the matter some more consideration. |
|
| Back to top |
|
 |
Dave Uhring *nix forums Guru
Joined: 02 Mar 2005
Posts: 973
|
Posted: Thu Mar 31, 2005 5:18 pm Post subject:
Re: OpenBSD box returning wrong IP
|
|
|
On Thu, 31 Mar 2005 10:32:55 -0800, bradmbreer@yahoo.com wrote:
| Quote: | How the windows "discovered" the 192.168.225.254 was via the ICMP TTL
message from traceroute.
|
It appears that OpenBSD-3.6 does indeed use the aliased address to send
that message. The anomaly occurs using not only Windose but Solaris,
Linux and OpenBSD, too. |
|
| Back to top |
|
 |
adiavr@gmail.com *nix forums beginner
Joined: 23 Mar 2005
Posts: 9
|
Posted: Thu Mar 31, 2005 9:43 pm Post subject:
Re: OpenBSD box returning wrong IP
|
|
|
It does not matter indeed, I just found it weird. Connectivity works
fine.
These are some of the entries in the routing table on the OpenBSD box:
Destination Gateway Flags Refs Use Mtu
Interface
192.168.0/24 link#3 UC 54 0 -
rl2
192.168.215/24 link#3 UC 2 0 -
rl2
192.168.215.1 link#3 UHRLc 0 63 -
rl2
192.168.215.252 0:11:d8:36:38:fa UHLc 1 5360 -
rl2
192.168.215.254 127.0.0.1 UGHS 0 508 33224
lo0
I can't see anything wrong with that. |
|
| Back to top |
|
 |
Dave Uhring *nix forums Guru
Joined: 02 Mar 2005
Posts: 973
|
Posted: Thu Mar 31, 2005 11:05 pm Post subject:
Re: OpenBSD box returning wrong IP
|
|
|
On Thu, 31 Mar 2005 15:43:36 -0800, adiavr@gmail.com wrote:
| Quote: | I can't see anything wrong with that.
|
Except for the fact that you put two different networks onto the same
network interface.
Is that your idea of "security"? |
|
| Back to top |
|
 |
John McGrail *nix forums beginner
Joined: 23 Feb 2005
Posts: 22
|
Posted: Thu Mar 31, 2005 11:51 pm Post subject:
Re: OpenBSD box returning wrong IP
|
|
|
On 2005-03-29, adiavr@gmail.com <adiavr@gmail.com> wrote:
| Quote: | Our OpenBSD gateway has an IP address of 192.168.0.254. Recently I
added an alias on the interface for 192.168.215.254. Now everytime I
do a traceroute from a computer sitting on 192.168.0.x (which has
default gateway 192.168.0.254), the firewall returns the
192.168.215.254 first hop address. Any idea what causes this?
run the command |
ifconfig -a
on the OpenBSD gateway and post the output ...
--
ratfood@food.skaterat.net
All foods should be removed to reply |
|
| Back to top |
|
 |
Dave Uhring *nix forums Guru
Joined: 02 Mar 2005
Posts: 973
|
Posted: Fri Apr 01, 2005 12:22 am Post subject:
Re: OpenBSD box returning wrong IP
|
|
|
On Thu, 31 Mar 2005 19:51:39 -0600, John McGrail wrote:
| Quote: | run the command
ifconfig -a
on the OpenBSD gateway and post the output ...
|
Don't you mean
# ifconfig -A |
|
| Back to top |
|
 |
adiavr@gmail.com *nix forums beginner
Joined: 23 Mar 2005
Posts: 9
|
Posted: Fri Apr 01, 2005 5:21 pm Post subject:
Re: OpenBSD box returning wrong IP
|
|
|
Here's the interface in question
rl2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:11:2f:c6:cc:44
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::211:2fff:fec6:cc44%rl2 prefixlen 64 scopeid 0x3
inet 192.168.215.254 netmask 0xffffff00 broadcast
192.168.215.255 |
|
| Back to top |
|
 |
adiavr@gmail.com *nix forums beginner
Joined: 23 Mar 2005
Posts: 9
|
Posted: Fri Apr 01, 2005 6:12 pm Post subject:
Re: OpenBSD box returning wrong IP
|
|
|
Care to explain? I'm running an OpenVPN server on 192.168.215.252
which also has an external interface. This way clients coming in
through VPN get routed through the VPN server then the gateway then to
local PC's which then send packets back the same way.
If I had the VPN server on 192.168.0.x, packets sent TO 192.168.0.x
from VPN would just get sent directly through the VPN's interface but
packets sent FROM 192.168.0.x would go first to the gateway then to the
VPN server and I couldn't get anything working. |
|
| Back to top |
|
 |
Dave Uhring *nix forums Guru
Joined: 02 Mar 2005
Posts: 973
|
Posted: Fri Apr 01, 2005 7:02 pm Post subject:
Re: OpenBSD box returning wrong IP
|
|
|
On Fri, 01 Apr 2005 12:12:51 -0800, adiavr@gmail.com wrote:
Separate subnets normally are assigned to separate NICs, which should
prevent the phenomenon you posted about.
| Quote: | I'm running an OpenVPN server on 192.168.215.252
|
I have never messed with such. I do all my remote admin work over ssh. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|