Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
IP alias with OpenBSD
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gnat  
View profile  
 More options May 1 2006, 10:55 pm
Newsgroups: bit.listserv.openbsd-pf
From: "Gnat" <Scott.Mo...@ca.com>
Date: 1 May 2006 05:55:42 -0700
Local: Mon, May 1 2006 10:55 pm
Subject: IP alias with OpenBSD
  I need some help on setting up IP aliasing with NAT. The need is to
create static NAT entries for some users due to a  limit of 4 sessions
per Public IP Address for a VPN server. I have 5 addresses from my ISP
and wanted to use these to get around this 4 sessions per WAN IP. Any
examples would be greatly appreciated.

Thanks,
Gnat


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jared r r spiegel  
View profile  
 More options May 2 2006, 10:42 am
Newsgroups: bit.listserv.openbsd-pf
From: j...@ice-nine.org (jared r r spiegel)
Date: 1 May 2006 17:42:27 -0700
Local: Tues, May 2 2006 10:42 am
Subject: Re: IP alias with OpenBSD

On Mon, May 01, 2006 at 05:55:42AM -0700, Gnat wrote:
>   I need some help on setting up IP aliasing with NAT. The need is to
> create static NAT entries for some users due to a  limit of 4 sessions
> per Public IP Address for a VPN server. I have 5 addresses from my ISP
> and wanted to use these to get around this 4 sessions per WAN IP. Any
> examples would be greatly appreciated.

  did you try something based on:

ext="fxp0"
int="fxp1"
my5addrs="1.2.0.1 1.2.0.2 1.2.0.3 1.2.0.4 1.2.0.5"

nat on $ext -> { $my5addrs }

  i've never dealt personally with multiple egress IPs, but that
  syntax passes the parser

--

  jared

[ openbsd 3.9-current GENERIC ( mar 15 ) // i386 ]


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Hartmeier  
View profile  
 More options May 2 2006, 5:21 pm
Newsgroups: bit.listserv.openbsd-pf
From: dan...@benzedrine.cx (Daniel Hartmeier)
Date: 2 May 2006 00:21:36 -0700
Local: Tues, May 2 2006 5:21 pm
Subject: Re: IP alias with OpenBSD
On Mon, May 01, 2006 at 08:26:37PM -0400, jared r r spiegel wrote:

> my5addrs="1.2.0.1 1.2.0.2 1.2.0.3 1.2.0.4 1.2.0.5"

> nat on $ext -> { $my5addrs }

>   i've never dealt personally with multiple egress IPs, but that
>   syntax passes the parser

Yes, that should work. pf will automatically cycle through those
addresses when you establish multiple non-TCP/UDP/ICMP connections to
the same external host. You don't need special syntax to enable that.

When you already have an ongoing VPN connection from, say, 10.1.2.3
to 62.65.145.30 NATed to 1.2.0.1, and then open another one (from
any other 10/8 to 62.65.145.30), it will also try to use 1.2.0.1 as
replacement address, note the conflict with the existing state entry,
then try the next one (1.2.0.2). Only when you exhaust all four
addresses (try to establish a fifth concurrent VPN connection to
62.65.145.30), there will be a state insertion failure.

Daniel


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google