frps.ini服务端配置

[common]
bind_addr = 0.0.0.0
bind_port = 7000
kcp_bind_port = 7000
bind_udp_port = 7001
privilege_token = www.nat.ee
vhost_http_port = 80
vhost_https_port = 443
privilege_allow_ports = 10001-19999
#subdomain_host = nat.ee
max_pool_count = 6
tcp_mux=true
heartbeat_timeout = 90
authentication_timeout = 900
#[admin]
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
#[log]
log_file = /etc/frp/log/frps.log
log_level = info
log_max_days = 7

iptables

iptables -A INPUT -p tcp --dport 7000 -j ACCEPT
iptables -A INPUT -p udp --dport 7000 -j ACCEPT
iptables -A INPUT -p tcp --dport 7001 -j ACCEPT
iptables -A INPUT -p udp --dport 7001 -j ACCEPT
iptables -A INPUT -p tcp --dport 7500 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -p tcp --dport 10001:19999 -j ACCEPT
iptables -A INPUT -p udp --dport 10001:19999 -j ACCEPT
iptables-save >/etc/iptables.conf

如想参考本站的frp公共服务,可以看此配置。
我已经(*)泛解析和(@)解析域名到服务端IP。

标签: none