D
D
deadstudio2015-04-02 09:32:45
Squid
deadstudio, 2015-04-02 09:32:45

How to redirect all incoming http and https traffic to local web server?

Condition: there is a wifi router connected to the gateway on Debian. The router forwards all packets to the gateway.
Task: redirect all incoming http and https traffic of the gateway to a web server running on the same gateway.

It would seem that it could be more trivial. There is no problem with the http redirect. But https refuses to redirect no matter what I do.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sbh, 2015-04-02
@sbh

What have you already done?

S
Sergey Petrikov, 2015-04-02
@RicoX

Here the problem is most likely not in the rule, which is like this:
Here, the problem is probably that on your web server, where the redirect goes, HTTPS must be enabled and configured.

V
Vlad Zhivotnev, 2015-04-02
@inkvizitor68sl

> But https refuses to redirect no matter what I do.
That's what it was made for, after all.
In any case, browsers will swear at an invalid certificate (well, provided that you don’t put your own CA on each client with your hands).
Better not suffer heresy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question