1 Star 4 Fork 25

Vos3000/vos

forked from zhq1/vos 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
How to change VOS3000 admin client port 4.22 KB
一键复制 编辑 原始数据 按行查看 历史
How to change VOS3000 admin client port
If you want to change vos3000 client default admin port . you can do it without changing anything on vos3000 server setting you need to just configure the iptables on server.
Below are the iptables command to change port no 7878
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1202 -j DNAT –to-destination :3720
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 16500 -j DNAT –to-destination :1202
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1202 -j DNAT –to-destination :3720
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 16500 -j DNAT –to-destination :1202
Download Command changeport
Now open VOS3000 Admin Client and login with port address 7878
# Generated by iptables-save v1.4.7 on Fri Aug 9 23:44:42 2019
*mangle
:PREROUTING ACCEPT [585:172743]
:INPUT ACCEPT [585:172743]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [579:210116]
:POSTROUTING ACCEPT [579:210116]
-A PREROUTING -m conntrack --ctstate INVALID -j DROP
-A PREROUTING -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m conntrack --ctstate NEW -j DROP
-A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,RST FIN,RST -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,ACK FIN -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags ACK,URG URG -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,ACK FIN -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags PSH,ACK PSH -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,SYN,RST,PSH,ACK,URG -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,PSH,URG -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,SYN,PSH,URG -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,SYN,RST,ACK,URG -j DROP
-A PREROUTING -f -j DROP
COMMIT
# Completed on Fri Aug 9 23:44:42 2019
# Generated by iptables-save v1.4.7 on Fri Aug 9 23:44:42 2019
*nat
:PREROUTING ACCEPT [24:9779]
:POSTROUTING ACCEPT [12:769]
:OUTPUT ACCEPT [12:769]
-A PREROUTING -p tcp -m tcp --dport 16500 -j REDIRECT --to-ports 1202
-A PREROUTING -p tcp -m tcp --dport 1202 -j DNAT --to-destination :3720
-A PREROUTING -p tcp -m tcp --dport 16500 -j DNAT --to-destination :1202
-A POSTROUTING -p tcp -m tcp --dport 16500 -j MASQUERADE
COMMIT
# Completed on Fri Aug 9 23:44:42 2019
# Generated by iptables-save v1.4.7 on Fri Aug 9 23:44:42 2019
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [1:152]
:port-scanning - [0:0]
:syn-flood - [0:0]
-A INPUT -p tcp -m tcp --dport 8080 -m connlimit --connlimit-above 5 --connlimit-mask 32 -j REJECT --reject-with icmp-port-unreachable
-A INPUT -i lo -j ACCEPT
-A INPUT -p udp -m udp --sport 123 -j ACCEPT
-A INPUT -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 1202 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 16500 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 1202 -j DROP
-A INPUT -p tcp -m tcp --dport 1719 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 1720 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3719 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3720 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 10000:49999 -j ACCEPT
-A INPUT -p udp -m udp --dport 5060 -j ACCEPT
-A INPUT -p udp -m udp --dport 6060 -j ACCEPT
-A INPUT -p udp -m udp --dport 5070 -j ACCEPT
-A INPUT -p udp -m udp --dport 10000:49999 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -p udp -m udp --sport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
-A OUTPUT -p udp -m udp --sport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 123 -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A OUTPUT -p udp -m udp --sport 53 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 53 -j ACCEPT
COMMIT
# Completed on Fri Aug 9 23:44:42 2019
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/vos3000/vos.git
git@gitee.com:vos3000/vos.git
vos3000
vos
vos
master

搜索帮助