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
two external intarfaces
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
DoN. Nichols
*nix forums beginner


Joined: 20 Feb 2005
Posts: 33

PostPosted: Tue May 16, 2006 4:55 am    Post subject: Re: two external intarfaces Reply with quote

According to lost <nospam.reader@super.int.pl>:
Quote:
It is not very clear to me what you want to do, and since you received
no other responses, this seems to be the rule.

What is your setup, IP-wise, and what does your routing table looks
like? What do you want to do with traffic?

Joachim
I have 2 interfaces connected to internet.
One of them act as default in route table as usual.
If I send eg. ping to a second interface address then icmp reply is shown
outgoing on the first interface instead of to be send out through the second
one.
The reply should be directed back through the second interface as well,
as expected result by using the option reply-to.

It sounds as though you have both interfaces connected to the
same subnet. What is this intended to accomplish?

You would probably have better results if the two interfaces
were connected to separate nets.

But until we have more information, all we can do is guess.

Good luck,
DoN.

--
Email: <dnichols@d-and-d.com> | Voice (all times): (703) 938-4564
(too) near Washington D.C. | http://www.d-and-d.com/dnichols/DoN.html
--- Black Holes are where God is dividing by zero ---
Back to top
lost
*nix forums beginner


Joined: 12 Mar 2005
Posts: 15

PostPosted: Mon May 15, 2006 4:24 pm    Post subject: Re: two external intarfaces Reply with quote

Quote:
It is not very clear to me what you want to do, and since you received
no other responses, this seems to be the rule.

What is your setup, IP-wise, and what does your routing table looks
like? What do you want to do with traffic?

Joachim
I have 2 interfaces connected to internet.

One of them act as default in route table as usual.
If I send eg. ping to a second interface address then icmp reply is shown
outgoing on the first interface instead of to be send out through the second
one.
The reply should be directed back through the second interface as well,
as expected result by using the option reply-to.
Back to top
jKILLSPAM.schipper@math.u
*nix forums Guru Wannabe


Joined: 13 Nov 2005
Posts: 202

PostPosted: Mon May 15, 2006 9:50 am    Post subject: Re: two external intarfaces Reply with quote

lost <nospam.reader@super.int.pl> wrote:
Quote:
I have two external interfaces with OBSD 3.9 box.
If I try to connect to 2nd "ext_if" PF seems to direct all response packets
to the default gateway (1st ext_if).
The rules below don't make a proper job:

# pass in log on $ext_if2 reply-to ($ext_if2 $ext_gw2) inet proto tcp from
any to $ext_if2 keep state

# pass out on $ext_if2 route-to ($ext_if1 $ext_gw1) from $ext_if1 to any
# pass out on $ext_if1 route-to ($ext_if2 $ext_gw2) from $ext_if2 to any

Should I delete default route from route table?

It is not very clear to me what you want to do, and since you received
no other responses, this seems to be the rule.

What is your setup, IP-wise, and what does your routing table looks
like? What do you want to do with traffic?

Joachim
Back to top
lost
*nix forums beginner


Joined: 12 Mar 2005
Posts: 15

PostPosted: Sat May 13, 2006 8:00 pm    Post subject: two external intarfaces Reply with quote

I have two external interfaces with OBSD 3.9 box.
If I try to connect to 2nd "ext_if" PF seems to direct all response packets
to the default gateway (1st ext_if).
The rules below don't make a proper job:

# pass in log on $ext_if2 reply-to ($ext_if2 $ext_gw2) inet proto tcp from
any to $ext_if2 keep state

# pass out on $ext_if2 route-to ($ext_if1 $ext_gw1) from $ext_if1 to any
# pass out on $ext_if1 route-to ($ext_if2 $ext_gw2) from $ext_if2 to any

Should I delete default route from route table?

Tnx for suggestions
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Wed Jan 07, 2009 9:21 pm | All times are GMT
navigation Forum index » *nix » BSD » OpenBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Can't Select External Table from CSV File Resant Server 1 Fri Jul 21, 2006 2:45 am
No new posts retrieve value from an external file? Bing Du MySQL 4 Thu Jul 20, 2006 7:48 pm
No new posts problems mounting external drive onetitfemme Setup 2 Wed Jul 19, 2006 4:54 pm
No new posts Logging console output to external server tomec@obywatel.pl security 4 Tue Jul 18, 2006 5:34 pm
No new posts Installing Solaris on a Blade 1000 from external SCSI ? Lothar Scholz Solaris 8 Tue Jul 18, 2006 9:53 am

Credit Card | Bankruptcy | Debt Consolidation | Loans | Xbox Mod Chip
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.1895s ][ Queries: 20 (0.0785s) ][ GZIP on - Debug on ]