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 6th August 2011
wlm2 wlm2 is offline
Port Guard
 
Join Date: Jun 2011
Posts: 32
Default networking configuration help!!

i need to know if i can implement NAT with dynamic ip address
Assigned to my WAN interface ?

this is the topology that i want to achieve:
the pc behind my LAN interface (vr0) will be received an ip address by DHCP server that will be configured on the alix board.

my WAN interface (vr1) will be defined as DHCP Client
and will be received an public ip address via the modem

the part that i can't figured out is the NAT from privet ip address from the pc's behind the lan interface to use the public ip address that assigned by the modem DHCP Server.

I'd appreciate your help asap and examples are more then welcome.
thanks in advance.
matthew.
Reply With Quote
  #2   (View Single Post)  
Old 6th August 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

The answer you seek, including an example, are found right within the PF User's Guide, which is an adjunct document of the OpenBSD FAQ.

Quote:
When specifying an interface name for the translation address as above, the IP address is determined at pf.conf load time, not on the fly. If you are using DHCP to configure your external interface, this can be a problem. If your assigned IP address changes, NAT will continue translating outgoing packets using the old IP address. This will cause outgoing connections to stop functioning. To get around this, you can tell PF to automatically update the translation address by putting parentheses around the interface name:
pass out on tl0 from dc0:network to any nat-to (tl0)
See the complete chapter from the PF User's Guide on Network Address Translation if you need more information.
Reply With Quote
  #3   (View Single Post)  
Old 6th August 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Here's a link to the PF User's Guide, in case you need it.
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
networking not working unixjingleman OpenBSD General 15 11th January 2011 04:07 PM
Basic networking fail. diw OpenBSD General 13 31st March 2009 09:29 AM
Would BSD be right to learn networking? php111 Off-Topic 17 25th September 2008 07:02 PM
Some networking help kevinz OpenBSD General 8 15th September 2008 03:34 AM
Networking between bsd and mac rex FreeBSD General 7 12th May 2008 07:57 AM


All times are GMT. The time now is 04:42 AM.


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