DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th October 2011
aod aod is offline
New User
 
Join Date: Oct 2011
Posts: 4
Thanked 0 Times in 0 Posts
Default OpenBSD networking problems

Howdy!
I use OpenBSD/sparc64 4.9 (julia) and want to configure it as a router.
Unfortunately, I'm facing strange problems when trying to set routes correctly.

There is second host in a network, called ingrid.
When executing 'ping' from julia to ingrid, 'tcpdump' on julia shows ICMP requests and replies from ingrid just as it should, but 'ping' shows nothing!
What can be possible cause of such a situation?
Reply With Quote
  #2   (View Single Post)  
Old 5th October 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,662
Thanked 214 Times in 189 Posts
Default

Welcome.
Quote:
What can be possible cause of such a situation?
Without more information, all we can do is guess.

I'll guess you have PF enabled but an incorrect PF configuration.
Reply With Quote
  #3   (View Single Post)  
Old 5th October 2011
n4p1 n4p1 is offline
New User
 
Join Date: Mar 2010
Posts: 9
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by aod View Post
When executing 'ping' from julia to ingrid, 'tcpdump' on julia shows ICMP requests and replies from ingrid just as it should, but 'ping' shows nothing!
What can be possible cause of such a situation?
Edit pf.conf:
Code:
pass in quick on $int_if inet proto icmp from ($int_if:network) to any icmp-type {8,11}
pass out quick on $int_if inet proto icmp from any to ($int_if:network) icmp-type {8,11}
pfctl -f /etc/pf.conf and voila.
Reply With Quote
  #4   (View Single Post)  
Old 5th October 2011
aod aod is offline
New User
 
Join Date: Oct 2011
Posts: 4
Thanked 0 Times in 0 Posts
Default

I've disabled pf for purpose of testing.

Network looks something like that:
Wild <---> adsl [router aurelia] 192.168.1.100 <---> 192.168.1.1 bge0 [OpenBSD julia] rl0 192.168.1.2 <---> 192.168.1.4 eth0 [Linux ingrid]

rl0 and eth0 are directly connected, ping shows no connection, tcpdump shows that icmp reply, request and arp who has packets flow.
Reply With Quote
  #5   (View Single Post)  
Old 5th October 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,877
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by aod View Post
rl0 and eth0 are directly connected...
What kind of cable is used to connect the two together? Straight-through or cross-over?
Reply With Quote
  #6   (View Single Post)  
Old 5th October 2011
aod aod is offline
New User
 
Join Date: Oct 2011
Posts: 4
Thanked 0 Times in 0 Posts
Default

The cable is cross-over.
Reply With Quote
  #7   (View Single Post)  
Old 5th October 2011
aod aod is offline
New User
 
Join Date: Oct 2011
Posts: 4
Thanked 0 Times in 0 Posts
Default

I've tried to connect systems with a switch, e.g.

|julia|-------.
|switch| ------ |router|
|ingrid|-----'

They see router (pings flow in both directions), but pinging julia from ingrid or ingrid from julia gives no results.
Reply With Quote
  #8   (View Single Post)  
Old 5th October 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,662
Thanked 214 Times in 189 Posts
Default

I'd like to see more information from you, aod. Please post your dmseg(8) and the outputs of # ifconfig and # route -n show -inet to start. Without this minimal information, we'll just keep guessing.
Reply With Quote
  #9   (View Single Post)  
Old 16th October 2011
mikygee mikygee is offline
New User
 
Join Date: Oct 2011
Posts: 7
Thanked 0 Times in 0 Posts
Default

Maybe you have a netmask problem. Check the masks of each Ingrid and Julia. In principle they should be the same
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD on qemu: opera install problems Mr-Biscuit OpenBSD Packages and Ports 6 7th September 2009 03:29 AM
OpenBSD, vpnc and packets forwarding problems Tritone OpenBSD General 3 2nd July 2009 09:59 PM
Remote OpenBSD ssh-based install problems artix OpenBSD Installation and Upgrading 7 13th March 2009 08:52 PM
Networking between bsd and mac rex FreeBSD General 7 12th May 2008 07:57 AM
OpenBSD networking section? ai-danno Feedback and Suggestions 4 9th May 2008 07:54 AM


All times are GMT. The time now is 05:12 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick