BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old November 17th, 2005, 03:16 PM
Shpiz Shpiz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 54 Shpiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 3
Exclamation Syntax error "noroute" on PF OpenBSD

Hi all,

I need to understand why in my pf.conf file get a syntax error on the following line when I run the pfctl -f /etc/pf.conf.

NoRoute = "{ 127.0.0.1/8, 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8, 255.255.255.255/32 }"

can someone help me ?

thanxx in advance

Reply With Quote
  #2  
Old November 21st, 2005, 01:17 PM
murphy_young murphy_young is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 296 murphy_young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 17 m 54 sec
Reputation Power: 0
Don't know why you get this error, but you can always do this:

block in quick on $ext_if from 10.0.0.0/8 to any
block in quick on $ext_if from 127.0.0.0/8 to any
block in quick on $ext_if from 172.16.0.0/12 to any
block in quick on $ext_if from 192.168.0.0/16 to any

Just change $ext_if to your internet interface, this work for me.

Reply With Quote
  #3  
Old November 22nd, 2005, 07:43 AM
Shpiz Shpiz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 54 Shpiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 3
it does not help.... I still have the error..

this are the error that I get:

/etc/pf.conf:48: syntax error
/etc/pf.conf:113: macro 'NoRoute' not defined
/etc/pf.conf:113: syntax error
/etc/pf.conf:114: macro 'NoRoute' not defined
/etc/pf.conf:116: macro 'OutServicesUDP' not defined
/etc/pf.conf:116: syntax error
/etc/pf.conf:117: macro 'OutServicesTCP' not defined
pfctl: Syntax error in config file: pf rules not loaded

I don't understand why I have a non define rule error ... and syntax error .. Did I spell the command in a bad way?

Thank you a lot in advance for your help ..

Reply With Quote
  #4  
Old November 22nd, 2005, 10:08 AM
murphy_young murphy_young is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 296 murphy_young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 17 m 54 sec
Reputation Power: 0
Like I said, I don't use "NoRoute", just the commands that I write in my last post.

You can change this:

NoRoute = "{ 127.0.0.1/8, 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8, 255.255.255.255/32 }"

to this:

block in quick on $ext_if from 10.0.0.0/8 to any
block in quick on $ext_if from 127.0.0.0/8 to any
block in quick on $ext_if from 172.16.0.0/12 to any
block in quick on $ext_if from 192.168.0.0/16 to any

Reply With Quote
  #5  
Old November 24th, 2005, 10:44 AM
Shpiz Shpiz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 54 Shpiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 3
Hi Murphy,
Like I said in my last post too, what you gave me does not help. I have changed it but I still get the same error msg.
I have found THE SOLUTION !! It is lot more simple than any thing but OpenBSD read the lines and translate the code on the going. 3 lines upper on my PF.CONF file i have forgot to close the " signe and that caused the error ... 3 lines forward but still... we could be here discussing long time !!

Well thank you for your concern on this one
Cheers

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Syntax error "noroute" on PF OpenBSD


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway