Unix Technical Forum

Newbie alert: Firewall HOWTO

This is a discussion on Newbie alert: Firewall HOWTO within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> OK, I dug up an old laptop, and I want to make a firewall out of it. I got ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 06:22 AM
Captain Dondo
 
Posts: n/a
Default Newbie alert: Firewall HOWTO

OK, I dug up an old laptop, and I want to make a firewall out of it. I got
the latest OpenBSD running on it. Now what?

I'm pretty knowledgeable about *nix in general, and linux in particular,
but I am completely stumped with the particulars of OpenBSD.

What's the firewall tool called? I don't even have a clue where to begin.

I *know* the thing is firewalling, because I can't even ssh into it:

[yan@poseidon yan]$ ssh kerber-puppy -l root
ssh: connect to host kerber-puppy port 22: No route to host
[yan@poseidon yan]$ ping kerber-puppy
PING kerber-puppy.seiner.lan (192.168.128.221) 56(84) bytes of data.
From poseidon.seiner.lan (192.168.128.222) icmp_seq=1 Destination Host Unreachable

but I can ping and ssh *from* it to the hosts in my lan...

So, where do I start?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 06:22 AM
froggy
 
Posts: n/a
Default Re: Newbie alert: Firewall HOWTO

On Sat, 22 Jan 2005 15:18:40 -0800, Captain Dondo wrote:

> OK, I dug up an old laptop, and I want to make a firewall out of it. I got
> the latest OpenBSD running on it. Now what?
>
> I'm pretty knowledgeable about *nix in general, and linux in particular,
> but I am completely stumped with the particulars of OpenBSD.
>
> What's the firewall tool called? I don't even have a clue where to begin.
>
> I *know* the thing is firewalling, because I can't even ssh into it:
>
> [yan@poseidon yan]$ ssh kerber-puppy -l root
> ssh: connect to host kerber-puppy port 22: No route to host
> [yan@poseidon yan]$ ping kerber-puppy
> PING kerber-puppy.seiner.lan (192.168.128.221) 56(84) bytes of data.
> From poseidon.seiner.lan (192.168.128.222) icmp_seq=1 Destination Host Unreachable
>
> but I can ping and ssh *from* it to the hosts in my lan...
>
> So, where do I start?


Im no expert..
but the OpenBSD 'firewall' is pf ( for packet filter )
man pf
there is an excellent 'how to' on the openbsd site..
its ( as far as i can tell ) setup much like iptables.. although the pf
itself doesnt do routing ( thats handled somewhere else in the kernel me
thinks )
loading the rulesets is done with pfctl
man pfctl

hope this helps.. and doesnt add to the confusion

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 06:22 AM
Maurice Janssen
 
Posts: n/a
Default Re: Newbie alert: Firewall HOWTO

Captain Dondo wrote:
>OK, I dug up an old laptop, and I want to make a firewall out of it. I got
>the latest OpenBSD running on it. Now what?

<...>
>So, where do I start?


There's a very good introduction at
http://www.openbsd.org/faq/pf/

--
Maurice
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 06:22 AM
google@nimmaj.com
 
Posts: n/a
Default Re: Newbie alert: Firewall HOWTO

Hello!

Couple of things spring to mind - both a bit noddy so please don't feel
disgruntled that I'm suggesting them. What you've described feels
networky to me. Is the interface definitely up and listening? Also
when you install, it asks you whether you want to run sshd by default -
did you hit yes? I reckon it's worth checking these two.

After that, I've recently been posting about some trouble I've been
having with a machine I've got that sounds like it's for a similar
purpose. It's the ssh hanging thread. All my config files are in that
thread and may help. Yesterday I worked out what the problem was too
(though not why!). I'll post that at the end of the thread...
Hope this helps,

Ben

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-16-2008, 06:22 AM
Captain Dondo
 
Posts: n/a
Default Re: Newbie alert: Firewall HOWTO

On Sun, 23 Jan 2005 02:45:27 -0800, google@nimmaj.com wrote:

> Couple of things spring to mind - both a bit noddy so please don't feel
> disgruntled that I'm suggesting them. What you've described feels
> networky to me. Is the interface definitely up and listening? Also
> when you install, it asks you whether you want to run sshd by default -
> did you hit yes? I reckon it's worth checking these two.



The only thing I can say about that is DUH.... I got so befuddled with
the *differences* of OpenBSD that I did not check the obvious... For some
weird reason, the install floppy got one IP address from DHCP, while the
machine, once it was up, got a different address, and DDNS did not pick up
on the change... Not sure why, but certainly nothing to do with OpenBSD....

Well, I do have it up, running, semi-configured. Now to play with it a
bit....

I'm building a list of newbie questions, too.... <grin>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-16-2008, 06:22 AM
clvrmnky
 
Posts: n/a
Default Re: Newbie alert: Firewall HOWTO

On 22/01/2005 6:18 PM, Captain Dondo wrote:
> OK, I dug up an old laptop, and I want to make a firewall out of it. I got
> the latest OpenBSD running on it. Now what?
>
> I'm pretty knowledgeable about *nix in general, and linux in particular,
> but I am completely stumped with the particulars of OpenBSD.
>
> What's the firewall tool called? I don't even have a clue where to begin.
>
> I *know* the thing is firewalling, because I can't even ssh into it:
>
> [yan@poseidon yan]$ ssh kerber-puppy -l root
> ssh: connect to host kerber-puppy port 22: No route to host
> [yan@poseidon yan]$ ping kerber-puppy
> PING kerber-puppy.seiner.lan (192.168.128.221) 56(84) bytes of data.
> From poseidon.seiner.lan (192.168.128.222) icmp_seq=1 Destination Host Unreachable
>
> but I can ping and ssh *from* it to the hosts in my lan...
>
> So, where do I start?


man afterboot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


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


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com