Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#363874 - 21/04/2015 20:48 dd-wrt question
jmwking
old hand

Registered: 27/02/2003
Posts: 777
Loc: Washington, DC metro
I know some of you are using dd-wrt. I have a client using a vendor that needs to remotely address a printer in their office. They don't use vpn, so it's an open inbound connection. (Ick!)

Their current device is failing, and I was wondering if dd-wrt could easily handle filtering from several IP subnets and a single tcp port. If anyone could let me know if that's a feasible implementation (especially without getting into linux command line stuff), I'd very much appreciate it!

thanks,

-jk

Top
#363875 - 21/04/2015 21:21 Re: dd-wrt question [Re: jmwking]
K447
old hand

Registered: 29/05/2002
Posts: 798
Loc: near Toronto, Ontario, Canada
How is the remote access being done currently? Direct fixed IP inbound on a specific port number? Dynamic DNS?

Does the router need to understand the inbound protocol?

Top
#363876 - 21/04/2015 21:43 Re: dd-wrt question [Re: jmwking]
jmwking
old hand

Registered: 27/02/2003
Posts: 777
Loc: Washington, DC metro
It's a barely contained security nightmare: My client currently has a static IP. The vendor sends printer traffic to the IP address. All traffic on the printer's tcp port from the vendor's three IP ranges passes on to the NAT'ed printer. Everything else is binned. (I think - I hope - their printer won't accept unacknowledged/spoofed packets. Or at least not enough to do more than hurl a tray of paper.)

At the firewall level, there's no inspection, no proxies - no nothin' but sourced port traffic.

This appalls me enough; I really don't want to open them up to more open inbound traffic. They're locked into the vendor. And I haven't been able to effectively shame their vendor yet. I just want to keep source/port filters in place.

-jk


Edited by jmwking (21/04/2015 21:44)

Top
#363878 - 21/04/2015 22:49 Re: dd-wrt question [Re: jmwking]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
So which end do you want DD-WRT on? Both?

You haven't really told us what you want it to look like. Well I can't quite get it. Currently they port forward from their external IP to the printer?

Do you want DD-WRT at the printer end and users connect to that?

I would recommend a VPN of some description at best, however you could set it up so it *only* allowed port forwarding from specific IPs/ranges to the printer to provide *some* element of security.
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top
#363879 - 21/04/2015 23:45 Re: dd-wrt question [Re: jmwking]
jmwking
old hand

Registered: 27/02/2003
Posts: 777
Loc: Washington, DC metro
Sorry if I've not been clear. The dd-wrt would go in my client's office to replace an old, failing firewall. I have nothing to do with his vendor's kit (other than vent).

Currently, my client's firewall port-forwards his vendor's three subnets to my client's printer so he can print locally from his online app. My client's vendor doesn't support vpns, and I want to minimize how many people can get to his printer from the interwebs, hence the ip range/port filters. I'm trying to find the best value to manage the traffic, and none of the "home/soho" routers I've found filter on both IP and port; it's either port forward everything or nothing, or go after enterprise level stuff - and he's a very small business not prepared to shell out thousands. (Of course, if someone knows of a nice soho box that does it out of the box I'm all ears! Linksys, Netgear and Buffalo apparently don't, though Buffalo offers a dd-wrt version which got me on this tangent.)

My client's vendor frustrates me no end. And, no, he really can't change.

-jk

Top
#363886 - 22/04/2015 11:26 Re: dd-wrt question [Re: jmwking]
sein
old hand

Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
You can do this with a Mikrotik router, the relatively low end RB750 model is still significantly more configurable than any other router I have found. Forward $random_port to $printer_port for certain IP address only type rule is quite straightforward.

It is a shame your vendor does not support Google Cloud Print to avoid this madness. I'm sure there is an API for that.


Edited by sein (22/04/2015 11:33)
Edit Reason: Understood what was happening with a web app
_________________________
Hussein

Top
#363887 - 22/04/2015 20:12 Re: dd-wrt question [Re: jmwking]
jmwking
old hand

Registered: 27/02/2003
Posts: 777
Loc: Washington, DC metro
Thanks!

My client is a hair stylist/salon owner. His vendor is a former stylist/salon owner who is trying to just-make-it-work. "I don't care about that techy stuff!"

Insert favorite "Dumb Blonde" joke... <sigh>

-jk

Top
#363888 - 22/04/2015 20:39 Re: dd-wrt question [Re: jmwking]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
dd-wrt can do anything, including what you want (it is Linux underneath, after all). Dunno if they provided a GUI for this specifically, though. I use Tomato here, and it also can do this with a simple custom script.

Top
#363889 - 22/04/2015 23:30 Re: dd-wrt question [Re: jmwking]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
http://store.netgate.com/APU4.aspx with pfSense will walk it in and provide a reasonably powerful system for the price - $350 or $499 with pfSense pre-installed and ready to go.

Or buy direct from pcengines (will require some DIY building and seem out of stock for a couple of months frown ):
http://www.pcengines.ch/order1.php?c=4

and install pfSense.

The Alix boards would be capable too.

Any DD-WRT capable router will be capable (and cheaper). As mentioned it might just need some scripting.
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top
#363895 - 23/04/2015 06:29 Re: dd-wrt question [Re: mlord]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Originally Posted By: mlord
Dunno if they provided a GUI for this specifically, though


The GUI for OpenWRT (at least the version I currently have running -- I must upgrade at some point) only allows inbound filtering by specific-IP and port. In other words, no ranges. Of course, as you say, it's Linux underneath, so no biggy to drop down a level and use vi instead of the GUI.
_________________________
-- roger

Top
#363896 - 23/04/2015 09:25 Re: dd-wrt question [Re: jmwking]
jmwking
old hand

Registered: 27/02/2003
Posts: 777
Loc: Washington, DC metro
Thanks, everyone!

-jk

Top