目录

When setting up a VPN,proxy,or configuring ports,heres what you need to know:

VPN vs. Proxy VPN: Encrypts all your traffic and routes it through a remote server, hiding your IP and securing data. Common VPN protocols: OpenVPN (UDP 1194, TCP 443), WireG...

VPN vs. Proxy

  • VPN: Encrypts all your traffic and routes it through a remote server, hiding your IP and securing data.
    • Common VPN protocols: OpenVPN (UDP 1194, TCP 443), WireGuard (51820), IKEv2 (UDP 500), L2TP (UDP 1701).
  • Proxy: Acts as an intermediary for specific traffic (e.g., HTTP/SOCKS). No encryption by default.
    • Common proxy ports: HTTP (3128, 8080), SOCKS5 (1080).

Common VPN/Proxy Ports

Service Protocol Port(s)
OpenVPN UDP/TCP 1194 (default), 443 (TCP for stealth)
WireGuard UDP 51820 (default)
IPSec UDP 500 (IKE), 4500 (NAT-T)
PPTP TCP 1723
SOCKS5 TCP/UDP 1080
HTTP Proxy TCP 3128, 8080, 8888

How to Check/Change Ports

  • VPN: Modify in client/config files (e.g., .ovpn for OpenVPN).
    Example OpenVPN config:
    port 1194
    proto udp
  • Proxy: Set in proxy software (e.g., Squid, Shadowsocks).
    Example Squid (HTTP proxy) config:
    http_port 3128

Troubleshooting

  • Firewall: Ensure the port is allowed (e.g., ufw allow 1194/udp on Linux).
  • ISP Blocks: Try alternative ports (e.g., TCP 443 for OpenVPN to bypass restrictions).
  • Port Forwarding: Required if hosting a VPN/proxy server (forward the port in your router).

Security Tips

  • Avoid PPTP (insecure) and SOCKS without encryption.
  • Use WireGuard or OpenVPN for better security.
  • For proxies, prefer SOCKS5 with authentication or SSH tunneling (ssh -D 1080 user@server).

Need help with a specific setup? Let me know!

When setting up a VPN,proxy,or configuring ports,heres what you need to know:

扫描二维码推送至手机访问。

本文转载自互联网,如有侵权,联系删除。

本文链接:https://lankuai-app.com/post/288.html

扫描二维码手机访问

文章目录