DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th October 2015
bceverly bceverly is offline
Shell Scout
 
Join Date: Mar 2015
Posts: 88
Question Question on pf in the context of opensmtpd

Hi all,

I was thinking about my email setup that I have running right now where I am hosting my own mail server on a residential ISP (which blocks port 25 across the board. My solution was to stand up another server on a DigitalOcean VM that ran opensmtpd and relayed that mail to a high-numbered port on my server inside of the residential ISP network.

My question is this - did I massively over-engineer this? Could I have simply used a pf rule on the DigitalOcean VM to redirect port 25 traffic to my other host on a different port? Or would that not be a proper use of pf?

Thanks in advance. I'm really curious here if I could simplify my solution.
Reply With Quote
  #2   (View Single Post)  
Old 27th October 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Yes, PF can redirect TCP traffic with rdr-to. You haven't necessarily over-engineered, since you can use SMTP-specific filtering rules to accept/reject traffic, rather than only the layer 3 TCP/IP rules available with PF.
Reply With Quote
  #3   (View Single Post)  
Old 28th October 2015
bceverly bceverly is offline
Shell Scout
 
Join Date: Mar 2015
Posts: 88
Default

Thanks @jggimi!
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
opensmtpd -> nmh -> inbox shep OpenBSD Packages and Ports 1 8th October 2015 02:58 AM
OpenSMTPD and upgrading gpatrick OpenBSD Installation and Upgrading 2 5th July 2015 01:37 PM
Misc. BSD/UNIX Announced: OpenSMTPD 5.3 jggimi News 1 19th March 2013 12:23 PM
OpenSMTPD gpatrick OpenBSD General 2 18th August 2011 10:01 PM
OpenSMTPD gpatrick OpenBSD General 1 23rd February 2011 01:01 AM


All times are GMT. The time now is 05:56 AM.


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