DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 6th November 2008
jones jones is offline
New User
 
Join Date: Jun 2008
Posts: 5
Default Simple Firewall with PF

Hi, this thread could fit into many different forums here, please move it if it will suit somewhere else better

I am trying to set up my laptop(PC-BSD 7.0) to act as a router allowing my eee running OpenBSD to connect to my university wireless network.

The uni network use a WPA-Enterprise network, that isnt supported by openbsd yet, but i have working with the PC-BSD laptop. The network uses a proxy for http connections, but this might also effect other traffic I havent found a conclusive result yet.

I have two network interfaces rum0(connects to uni wireless) and bge0 (to connect to the OpenBSD machine).

I am not entirely sure the steps i need to set this up, so far i have gotten a basic pf.conf together(mostly gleamed for the book of PF), but with this config the PC-BSD machine cannot get any connection to the outside world.

Code:
ext_if = "rum0"         ##Macro for uniwireless network
int_if = "bge0"         ##Macro for openbsd network
localnet = $int_if:network
client_out = "{ssh, domain, auth, nntp,http,\
                https,2628,5999,8000,8080}"
udp_services = "{domain}"
icmp_types = "{ echoreq,unreach }"

nat on $ext_if from $localnet to any -> ($ext_if)

block all

pass quick inet proto {tcp, udp} from $localnet to any port $udp_services
pass log inet proto icmp all icmp-type $icmp_types
pass inet proto tcp from $localnet to any port $client_out
Any help with getting this connection up and running is much appreciated
__________________
------------------------------
jones on the Super Dimension Fortress
SDF Public Access System - http://sdf.lonestar.org
Reply With Quote
 

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
Quick, simple tcsh tips for beginners anomie Guides 9 6th November 2014 03:55 PM
Simple human front-end for 'bc(1)', the unlimited precision calculator J65nko Guides 1 2nd February 2013 06:50 PM
A simple question Mr-Biscuit Off-Topic 1 16th April 2009 04:26 PM
Help With [seemingly] Simple Problem MustLearn FreeBSD General 3 7th October 2008 10:05 AM
Simple/easy ircd Weaseal FreeBSD Ports and Packages 0 17th July 2008 12:31 PM


All times are GMT. The time now is 09:36 PM.


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