![]() |
|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
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) Code:
ifconfig bridge0 create brconfig bridge0 add ral0 add nfe0 up Code:
option domain-name-servers <MY-DNS1-IP>, <MY-DNS2-IP>; -Cheers! /Quaxo |
|
||||
![]() Quote:
Quote:
...since translation occurs before filtering, the filter engine will see the translated packet with the translated IP address and port... Quote:
Quote:
I strongly recommend you add the log keyword to every PF rule that permits it, so that you can see exactly what rules pass and block. You do this with tcpdump(8) and the pflog(4) pseudo device. Last edited by jggimi; 25th January 2009 at 05:31 PM. |
|
|||
![]()
Thanks a lot for your help so far
![]() Quote:
Quote:
Ok, so I wont need a bridge here. Then ill remove it. Quote:
(EDIT) This is weird...When using "pass log quick all" and doing a ssh from the laptop to the server I get a connection but nothing is shown in the PF-log. /Quaxo Last edited by Quaxo; 25th January 2009 at 07:32 PM. |
|
|||
![]()
This is now my set up...
Code:
/root# pfctl -sn nat on nfe0 from ! (nfe0) to any -> (nfe0) round-robin /etc# pfctl -sr block return log all pass out log quick on nfe0 inet proto udp from 192.168.0.154 to <hidden-ip> port = ntp keep state pass out log quick on nfe0 inet proto udp from 192.168.0.154 to <hidden-ip> port = ntp keep state pass out log quick on nfe0 inet proto udp from 192.168.0.154 to <hidden-ip> port = ntp keep state pass out log quick on nfe0 inet proto udp from 192.168.0.154 to <hidden-ip> port = domain keep state pass in log quick on nfe0 inet proto udp from <hidden-ip> port = domain to 192.168.0.154 keep state pass in log on nfe0 inet proto tcp from 192.168.0.102 to 192.168.0.154 port = ssh flags S/SA modulate state Any more ideas? Would it help to see ifconfig and stuff? /Quaxo |
|
||||
![]()
I don't see any ral0 NIC/network rules. But then, you're showing output from pfctl, not pf.conf.
I can tell two things from this pfctl output:
|
|
|||
![]()
...I figured "block return log all" would add notes to the pflog no matter what so therefore no need for more PF-rules.
However I found the problem! ![]() It was actually in dhcpd.conf. I didnt set the "option routers" correctly. It was still on the default setting (192.168.1.1) while the ral0 was on IP 192.168.1.34. So now it works great! This was ofcourse impossible for you to see since I have never posted these data ![]() Thanks alot for your time anyway /Quaxo |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
DJ Setup | tad1214 | FreeBSD General | 8 | 21st July 2008 01:50 PM |
problem on setup!! | josue | Other OS | 6 | 24th June 2008 05:29 AM |
How To Setup WPA? | warriors | OpenBSD General | 8 | 15th June 2008 04:39 PM |
postfix setup | Demodog | General software and network | 12 | 11th June 2008 07:43 PM |
IP Printer Setup | kjemison | FreeBSD General | 4 | 2nd June 2008 02:35 PM |