Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3891

Networking and servers • Re: R Pi as a NAT router, but not quite

$
0
0
I understand. Since it's all web stuff things are less likely to go wrong with a proxy service.
Exactly. There are possibly smaller proxies than HAProxy (which has a load of features that I don't use, like load balancing), but it's fairly easy to configure.

I think just adding this to the end of the default config file (with the proper IP addresses) should do what the OP wants, if I've got that right from the description.

Code:

frontend f1bind 10.x.x.x:12345        use_backend b1backend b1server my_server 192.168.x.x:80
Replaces the "x"s with the right numbers.

That will pass through any http request coming in to the Pi on port 12345 at its 10.x.x.x address to port 80 on the device's 192.168.x.x address.
The "my_server" is just a dummy name that can be used in other directives. It's not being used for anything here.

Statistics: Posted by rpdom — Wed Jan 24, 2024 9:12 am



Viewing all articles
Browse latest Browse all 3891

Trending Articles