Tunnel over HTTPS

前端 未结 13 1582
梦毁少年i
梦毁少年i 2021-01-30 11:09

At my workplace, the traffic blocker/firewall has been getting progressively worse. I can\'t connect to my home machine on port 22, and lack of ssh access makes me sad. I was

13条回答
  •  情深已故
    2021-01-30 11:56

    You should be able to use iptables to forward ssh traffic from your work machines to ssh while all other machines attaching to your home server on port 443 get the Apache server.

    Try a rule like this:

    iptables -t nat -A PREROUTING -p tcp -s 111.111.111.111 --dport 433 -j REDIRECT --to-port 22

    Where 111.111.111.111 is your office computer's ip address.

    That all assumes you're running Linux >= 2.4, which you should be by now. It's been out for almost a decade.

    Documentation for iptables is at http://www.netfilter.org.

提交回复
热议问题