DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th January 2017
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 973
Default email from router to OBSD workstation on LAN

My ISP is starting to charge if Bandwidth quota is exceeded and I would like to be able to monitor WAN bandwidth. Something on the order of vnstat as used in this BSDnow OpenBSD router tutorial.

I search for and purchased a refurbished router that is supported by OpenWRT.
OpenWRT allows for the creation of router firmware with custom apps. vnstat is one of those apps along with several email options.

I would like to send a monthly email with the wlan stats to my main workstation and avoid the use of OpenSSL libaries. Flash memory space is at a premium.

The default opensmtpd is configured for localhost email. I could not find any examples with router emails to opensmtpd. Most examples for router generated email use an external mail server and mine prefers ssl/tls.

I'm thinking that I should be able to set up a simple *-nossl/smarthost email program in the router, with an alias in the routers /etc/hosts and send to my main workstation, port 25, on the LAN. In the above link there are several email programs. I'm looking for comments as far as security and the viability of the idea.

As an aside, the OpenWRT project looks to be kinda of neat. I can imaging setting up secure router access with my own self-signed certificates.

Last edited by shep; 5th January 2017 at 09:27 PM.
Reply With Quote
  #2   (View Single Post)  
Old 5th January 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,586
Default

You can configure your smptd.conf accept filter rules in many ways, such as by incoming IP address. or Email address. This is done with accept from source <table> or accept from sender <table>. Perhaps one of these two options will help?

Keep in mind, in smtpd, the first matching rule wins.

FWIW, I use netflow statistics collection on my routers, consolidating the results from all onto one of them for reporting or analysis.

Last edited by jggimi; 5th January 2017 at 07:31 PM. Reason: gah! horrible bowl of leftover copypasta!
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
Possible data leakage from OpenBSD workstation alex_b83 OpenBSD Security 25 18th February 2016 12:55 AM
Email hacks router J65nko News 1 2nd December 2012 12:54 AM
New Workstation hardware question. tedeumjorge OpenBSD Installation and Upgrading 7 16th November 2012 02:37 AM
NetBSD as a workstation OS laconic NetBSD General 16 3rd May 2010 09:54 PM
News: BSD Workstation for sale kace FreeBSD General 26 22nd May 2008 12:00 PM


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


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