DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd November 2015
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default Linux Server

I have Linux Server and I want make it secure with PF , Linux is on one machine and OpenBSD and PF is on another machine in one network , Linux server and OpenBSD has public IP .
How I config PF , all request for linux server pass from PF ?
I want all request first send to PF and OpenBSD and after that request check or fix or block and after that go to Linux Server ?
I trust PF than IP Tables and think PF is powerful than IP Tables .
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
  #2   (View Single Post)  
Old 2nd November 2015
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

In order to have PF protect your Linux server, you must route its traffic through the OpenBSD server. The Linux server must not be directly connected to the Internet.

{Internet} - [OpenBSD] - [Linux]

There are two ways to route traffic to the Linux server:

1. They share the OpenBSD server's IP address. TCP/UDP traffic can be redirected by port number, also called Port Forwarding. PF's rdr-to is used. See the Traffic Redirection chapter of the PF User's Guide.

2. The OpenBSD server has multiple IP addresses on the public-facing NIC, and all traffic for one address is redirected to the Linux server. This is done with Bidirectional Mapping (also called bidirectional NAT, or "binat"). PF's binat-to is used. See the NAT chapter of the PF User's Guide
Reply With Quote
  #3   (View Single Post)  
Old 2nd November 2015
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

Thanks,
For me speed is important too , which way is better ?
__________________
http://www.mfaridi.com
First site about FreeBSD and OpenBSD in persian or Farsi.
Reply With Quote
  #4   (View Single Post)  
Old 2nd November 2015
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

The speed is going to be very similar; packet redirection and Bidirectional NAT have similar paths through the OpenBSD kernel.

You must choose Bidirectional Mapping:
  • if you need to route protocols other than TCP or UDP
  • If both the OpenBSD and Linux machines must listen to the same TCP or UDP port numbers
You may want to use Bidirectional Mapping if you wish to have the Linux server retain the unique IP address as a form of identity.

You may want to use Redirection if you do not have a requirement for Bidirectional Mapping and you wish to save money by using fewer Internet-facing IP addresses.
Reply With Quote
Reply


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
FreeBSD FreeBSD: A Faster Platform For Linux Gaming Than Linux? vermaden News 6 15th September 2011 03:45 AM
Other Another Linux Security Breach (this time at Linux Foundation) vermaden News 0 12th September 2011 07:00 AM
linux streaming server c0mrade General software and network 0 27th June 2009 11:36 PM
linux compat and linux-only drivers fbsduser FreeBSD General 9 22nd January 2009 05:42 PM
Sun Java System Web Server - Active Server Pages (yes ASP) hopla FreeBSD General 0 26th September 2008 08:22 AM


All times are GMT. The time now is 11:10 PM.


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