niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » OpenBSD
OpenBSD box returning wrong IP
Post new topic   Reply to topic Page 2 of 2 [24 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2
Author Message
bradmbreer@yahoo.com
*nix forums beginner


Joined: 30 Mar 2005
Posts: 13

PostPosted: Thu Mar 31, 2005 4:32 pm    Post subject: Re: OpenBSD box returning wrong IP Reply with quote

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

PostPosted: Thu Mar 31, 2005 5:18 pm    Post subject: Re: OpenBSD box returning wrong IP Reply with quote

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

PostPosted: Thu Mar 31, 2005 9:43 pm    Post subject: Re: OpenBSD box returning wrong IP Reply with quote

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

PostPosted: Thu Mar 31, 2005 11:05 pm    Post subject: Re: OpenBSD box returning wrong IP Reply with quote

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

PostPosted: Thu Mar 31, 2005 11:51 pm    Post subject: Re: OpenBSD box returning wrong IP Reply with quote

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

PostPosted: Fri Apr 01, 2005 12:22 am    Post subject: Re: OpenBSD box returning wrong IP Reply with quote

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

PostPosted: Fri Apr 01, 2005 5:21 pm    Post subject: Re: OpenBSD box returning wrong IP Reply with quote

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

PostPosted: Fri Apr 01, 2005 6:12 pm    Post subject: Re: OpenBSD box returning wrong IP Reply with quote

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

PostPosted: Fri Apr 01, 2005 7:02 pm    Post subject: Re: OpenBSD box returning wrong IP Reply with quote

On Fri, 01 Apr 2005 12:12:51 -0800, adiavr@gmail.com wrote:

Quote:
Care to explain?

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
Display posts from previous:   
Post new topic   Reply to topic Page 2 of 2 [24 Posts] Goto page:  Previous  1, 2
View previous topic :: View next topic
The time now is Thu Jan 08, 2009 12:07 pm | All times are GMT
navigation Forum index » *nix » BSD » OpenBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts mails returning as spam bahadirtonguc Postfix 0 Fri Apr 04, 2008 7:06 pm
No new posts returning 550 response code Micha Silver Postfix 2 Wed Jul 19, 2006 1:36 pm
No new posts OT: whats wrong with my CSS padding/margin positioning Roman PHP 1 Wed Jul 19, 2006 1:12 pm
No new posts Calling functions with the wrong parameters Kenneth Brody C 7 Tue Jul 18, 2006 6:17 pm
No new posts Creating a new file something going wrong riderchap@gmail.com Perl 4 Tue Jul 18, 2006 3:30 pm

Mortgage Calculator | Virtual pets | Loans | Repair Bad Credit | Bad Credit Mortgages
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1326s ][ Queries: 16 (0.0372s) ][ GZIP on - Debug on ]