@
@
@gtrkasss2020-12-07 09:03:53
CCTV
@gtrkasss, 2020-12-07 09:03:53

How to forward port to vlan?

Good day to all
The bottom line is, there is a server (internal grid), made vlan (pfsense, Winbox), how to forward the port so that you can connect to the server via phone and watch cameras through the Xeoma program?
More details if possible)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2020-12-07
@Drno

Well, you do the forwarding as usual. From the external ip / interface to the internal ip ....
Further, how to get to the internal ip via LAN is a separate issue. The connection diagram is not clear.
If the router where the request comes in, pings the internal IP, where it needs to be forwarded, everything will go by itself ...

A
Alexey Arkh, 2020-12-17
@AlekseyArh

Alternatively, ssh tunnel to a public server.
On the local server, you forward the port to the external server ssh -N -R 5000:127.0.0.1:80 [email protected]
On the external server, you prescribe a proxy for port 5000.

server {

    listen 80;
    listen [::]:80;
    server_name local.servername;

    location / {
        proxy_pass http://localhost:5000;
        access_log off;
  }

}

Now going to local.servername will open local 127.0.0.1:80
-f to open in the background
ssh -f -N -R 5000:127.0.0.1:80 [email protected]
ps -aux | grep '5000' to find the process to disable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question