View Single Post
  #3   (View Single Post)  
Old 28th June 2010
sharris sharris is offline
Package Pilot
 
Join Date: Jun 2010
Posts: 146
Default

Here it say " $dsn1 must be the IP address of your ISP s DNS.". I looked at my DSL Broadband Link, "DSL Connection Details" and there are in-fact two Domain Name Server, Primary and Secondary but below, these numbers in the same positions don't seem to work for me. This may not be a typo and is meant as the author say, but I got a feeling it could been written for his static address and not dynamic addressing. Just another guest for now, so here is what I did. ..

I just replaced it with "my" IP address from the resolv.conf like this dns1 = "192.168.1.254" and now I can ping from Gateway by name and number with this full rule set included, where before I had to comment out pf rules. So the code seems kind of backward... I'm not sure but at lease I am making some progress. Here's the link I got the tip from. It make all of this seem so easy but i still got other issues.

http://www.slackbook.org/html/networ...ion-tcpip.html

I'll try to re-find the link I cut-and-paste these pf rules from. I got a too many HOT web-pages saved on my hard drive.
Code:
dns1 = "{69.22.11.5, 69.22.11.6.}" # my ISP's Domain name server IP address

dhcp = "69.22.11.7"                # my ISP's DHCP server IP address
The first line is used for:
Code:
# Allow out access to my ISP's Domain name server.
# $dsn1 must be the IP address of your ISP s DNS.
# Get the IP addresses from /etc/resolv.conf file
pass out quick on $oif proto tcp from any to $dns1 port 53 $ob_state
pass out quick on $oif proto udp from any to $dns1 port 53 keep state

Last edited by sharris; 28th June 2010 at 09:08 PM.
Reply With Quote