Reply
 
Thread Tools Display Modes
  #1  
Old 05-20-2010, 06:59 PM
dns dns is offline
Junior Member
 
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Internet sharing
Hello boys, i want to know, how to share internet connection with firewall (etc/pf.conf).
My internet interface is rl0 and local is rl1. Thank
Reply With Quote
  #2  
Old 05-20-2010, 08:45 PM
jpaetzel's Avatar
jpaetzel jpaetzel is offline
Administrator
 
Join Date: Apr 2010
Location: Gilroy, CA
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jpaetzel Send a message via Yahoo to jpaetzel
Default Internet sharing
The PF rule would be:
nat on rl0 from re1:network to any -> (rl0)
You'll also need to have gateway_enable="YES" in
/etc/rc.conf at boot time, which sets net.inet.ip.forwarding=1
at boot time. To avoid rebooting you can just run
sysctl net.inet.ip.forwarding=1
Reply With Quote
  #3  
Old 05-20-2010, 09:29 PM
dns dns is offline
Junior Member
 
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Hi.. work okay, but if i want build a custum kernel, can using this options?:
Code:
options        PFIL_HOOKS     # pfil(9) framework /////Do I have?
device         pf             # PF OpenBSD packet-filter firewall
device         pflog          # logging support interface for PF
Do I need anything else?
Reply With Quote
  #4  
Old 06-18-2010, 09:08 PM
darkshadow darkshadow is offline
Junior Member
 
Join Date: Apr 2010
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default kernel option
have look on kernel option http://www.freebsd.org/doc/en_US.ISO...ewalls-pf.html
I think you should give the hand book a read
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


All times are GMT. The time now is 08:52 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.