SSH proxy via SOCKS with Firefox

Open dynamic port forward with SSH
ssh -D 8080 REMOTE_HOST

Then via Firefox visit about:preferences#general

Under Network Settings -> Manual proxy configuration set ONLY SOCKS host IP/DNS name and port.

firefox proxy settings

To test proxying go to https://www.whatismyip.com/ to check your public IP if it changed

Advertisements

Access NVR from the internet with Mikrotik port forwarding

I had to set up access to a Hikvision NVR on local network. Port forward from the public IP of ISP was done. My job was setting port forwarding on Mikrotik router which was connected to the NVR.

It was a lot of hours wasted until I figured it out from lots of forum reading and YouTube videos watching 😀

/ip firewall filter
add action=dst-nat chain=dstnat dst-address=192.168.100.115 dst-port=58000 \
    protocol=tcp to-addresses=192.168.88.3 to-ports=8000
add action=dst-nat chain=dstnat dst-address=192.168.100.115 dst-port=56911 \
    log=yes protocol=tcp to-addresses=192.168.88.3 to-ports=6911

The dst-address had to be the IP address of the router from the WAN side. Check in Quick Set

Mikrotik NAT port fowarding