View Single Post
  #1   (View Single Post)  
Old 25th January 2009
Quaxo Quaxo is offline
Port Guard
 
Join Date: Jun 2008
Posts: 29
Default Need help with NAT setup

Hello!

Im having trouble getting internet access from a laptop to the internet. I can connect to the server (ie. my router) via WLAN with DHCP without any problem, but when I try to read a web page nothing happens.

The server handling this routing is using OpenBSD v4.4. The laptop is connecting to the server via the ral0 interface and the server should redirect the trafic to nfe0 (connected to the intenet).

At this point I have three things to verify before I try something else. So my questions are...

Question 1) Should this PF-rule work for me?:
Code:
nat pass log on nfe0 from ral0:network to any -> (nfe0)
Question 2) In order to do this NAT, is it required to also create a bridge? Like:
Code:
ifconfig bridge0 create
brconfig bridge0 add ral0 add nfe0 up
Question 3) Should the domain-name-servers setting in dhcpd.conf point to my DNS given by my ISP? I mean, I must change the default settings in dhcpd.conf to:
Code:
option domain-name-servers <MY-DNS1-IP>, <MY-DNS2-IP>;
...right?


-Cheers!
/Quaxo
Reply With Quote