N7000 as reverse proxy

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
Jokerigno
DD-WRT Novice


Joined: 02 Mar 2017
Posts: 6

PostPosted: Thu Mar 02, 2017 13:23    Post subject: N7000 as reverse proxy Reply with quote
Hi all,

I've just flashed the latest firmware for my netgear r7000.

I was searching for a solution that allows me to use the router as reverse proxy.

My object is:
I have a public ip with different webserver running over it (NAS, Domotic, Torrent machine and so over). I would like to access it using subdomain and not by port.
Example: plex.domain.com route to xx.xx.xx.xx:32400

It is possible?

Thank you in advance
Sponsor
Jokerigno
DD-WRT Novice


Joined: 02 Mar 2017
Posts: 6

PostPosted: Sat Mar 04, 2017 19:09    Post subject: Reply with quote
Update,

I've installed squid on my R700 and tried to use it as reverse proxy...but without success.

Here it is my squid.conf:

Code:
http_port 80 accel vhost defaultsite=domain.com
cache_peer 192.168.x.xxx parent 80 0 no-query no-digest originserver name=server1
cache_peer 192.168.x.xxx parent 80 0 no-query no-digest originserver name=server2
acl sites_server1 dstdomain xxxx.domain.com
acl sites_server2 dstdomain yyyy.domain.com
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443          # https
acl Safe_ports port 80          # http
acl SSL_ports port 563          # snews
acl Safe_ports port 21          # ftp
acl Safe_ports port 5000        # DSM
acl Safe_ports port 5001        # DSM
acl Safe_ports port 1025-65535  # unregistered ports
cache_peer_access server1 allow sites_server1
cache_peer_access server2 allow sites_server2
http_access allow sites_server1
http_access allow sites_server2
http_access deny all


van someone please help me?
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 736
Location: AR, USA

PostPosted: Sun Mar 05, 2017 22:55    Post subject: Reply with quote
Does your ISP allow port 80 inbound to your IP address? Mine doesn't.
_________________
R7000 Nighthawk - DD-WRT v3.0-r40270M kongac (07/11/19)
~~~~~~~~~~~~~~Currently Unused~~~~~~~~~~~~~~
WRT54Gv2 - V24 STD Build 22118 configured as AP
WRT54Gv8.2 - V24 Micro Build 22118 configured as AP
Jokerigno
DD-WRT Novice


Joined: 02 Mar 2017
Posts: 6

PostPosted: Mon Mar 06, 2017 8:41    Post subject: Reply with quote
I don't think I have correctly understood the question.

BTW in the past I was able to use HAPROXY as reverse proxy on my Synology NAS and doing exactly what I'm trying to do today with my router:

subdomain.domain.com ---> r7000 reverse proxy 192.168.x.xxx:8123
slinskiy
DD-WRT Novice


Joined: 23 Dec 2016
Posts: 2

PostPosted: Thu Sep 21, 2017 1:05    Post subject: Reply with quote
Struggling to achieve the same objective.
I installed HAProxy on my Netgear R7000 running dd-wrt, but cannot seem to find a guide to setup a reverse proxy.
Jokerigno
DD-WRT Novice


Joined: 02 Mar 2017
Posts: 6

PostPosted: Thu Sep 21, 2017 8:35    Post subject: Reply with quote
slinskiy wrote:
Struggling to achieve the same objective.
I installed HAProxy on my Netgear R7000 running dd-wrt, but cannot seem to find a guide to setup a reverse proxy.


I gave up and used a Pi 3 to reach the same goal with caddy server (more easy than nginx or haproxy)
slinskiy
DD-WRT Novice


Joined: 23 Dec 2016
Posts: 2

PostPosted: Thu Sep 21, 2017 20:56    Post subject: Reply with quote
I'll follow your example given that I have a pi that's available (there are two but one is being used for homeassistant). Also now that hassio is available it's pretty darn easy to install caddy from repos.

Thanks for the idea.
Jokerigno
DD-WRT Novice


Joined: 02 Mar 2017
Posts: 6

PostPosted: Fri Sep 22, 2017 6:08    Post subject: Reply with quote
I tried both!


Hass.io + caddy add-on is simpler but in my opinion hass.io is less stable (I had problems and had to redo installations two times).

Raspian + HA + Caddy maybe is more complicated but it simply works! And I am a total noob who just followed tutorials!

Let me know Wink
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum