DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th July 2012
Nato85 Nato85 is offline
New User
 
Join Date: Jul 2012
Posts: 6
Thanked 0 Times in 0 Posts
Default Open BSD 5.1 Packet filter changes

Hey Guys

I am running around in circles trying to find out the answer to this question, hoping you can help

In an older version of BSD i had the following line in my packet filter

nat on $ext_if from X.X.X.X to any -> $ext_if


Where would I have to change this if I want this to work with OpenBSD 5.1

Please help

Cheers
Reply With Quote
  #2   (View Single Post)  
Old 16th July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Nato85 View Post
In an older version of BSD...
Mentioning which version of OpenBSD would be most helpful as pf(4) has radically changed through the past several years.
Reply With Quote
  #3   (View Single Post)  
Old 16th July 2012
Nato85 Nato85 is offline
New User
 
Join Date: Jul 2012
Posts: 6
Thanked 0 Times in 0 Posts
Default

Initially it was 4.5 and been upgraded to 5.1
Reply With Quote
  #4   (View Single Post)  
Old 16th July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Nato85 View Post
Initially it was 4.5 and been upgraded to 5.1
You have gone through all of the intermediate versions? Upgrading from 4.5 to 4.6, followed by 4.6 to 4.7, ..., all the way up to 5.0 to 5.1?

Skipping any intermediate version when upgrading is not supported.
Reply With Quote
  #5   (View Single Post)  
Old 16th July 2012
Nato85 Nato85 is offline
New User
 
Join Date: Jul 2012
Posts: 6
Thanked 0 Times in 0 Posts
Default

looks like i have got the nat rules right now but it still wont let me ping the internet

sorry, i might not have been clear


the last version of bsd i used was 4.5

I am installing 5.1 for a customer of mine and have found the pf rules to be different

i am confident that the rules are correct, however now i just need to get it to connect to the internet

whenever i ping the internet, it comes up with no route to host
Reply With Quote
  #6   (View Single Post)  
Old 16th July 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,613
Thanked 214 Times in 189 Posts
Default

There were significant syntax changes at 4.7.

http://www.openbsd.org/faq/upgrade47.html
Reply With Quote
  #7   (View Single Post)  
Old 16th July 2012
Nato85 Nato85 is offline
New User
 
Join Date: Jul 2012
Posts: 6
Thanked 0 Times in 0 Posts
Default

ok, i found out what my problem was.

now something is happening that i am sure its real simple to fix

in the ppp.linkup file i have the line

! etc/ppp/addroute.sh

apparently i have to put something before this because something about batch files cant run like that under bsd.

what would i have to type in

i thought it might of been /bin/sh but i was wrong about that
Reply With Quote
  #8   (View Single Post)  
Old 16th July 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,613
Thanked 214 Times in 189 Posts
Default

Please see the ppp(8) man page. You must use either the shell or !bg commands. There are examples in the ppp.linkup.sample and ppp.linkdown.sample files.
Reply With Quote
  #9   (View Single Post)  
Old 17th July 2012
Nato85 Nato85 is offline
New User
 
Join Date: Jul 2012
Posts: 6
Thanked 0 Times in 0 Posts
Default

All fixed.

Thankyou for your help.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
NetBSD Introducing NPF, NetBSD's new packet filter s0xxx News 1 14th September 2010 05:22 PM
NetBSD's new packet filter Alphalutra1 News 0 14th September 2010 03:06 AM
sshguard and packet filter sputnik OpenBSD Security 0 18th April 2009 02:11 PM
packet filter configuration. bsdnewbie999 OpenBSD General 1 23rd October 2008 08:54 AM
question about Packet Filter (pf) milo974 OpenBSD Security 2 31st July 2008 01:39 PM


All times are GMT. The time now is 06:38 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick