閘道器伺服器iptables指令碼(過濾蠕蟲)

2021-03-31 08:56:29 字數 868 閱讀 8417

[root@lacl-001 ~]$cat /root/ipt/gateway

service iptables stop

iptables -t nat -a postrouting -s 192.168.103.0/24 -o eth0 -j snat --to 202.115.169.56

iptables -a forward -m state --state established,related -j accept

#4444/445/69/135/139

iptables -a forward -p tcp --dport 4444 -j drop

iptables -a forward -p udp --dport 4444 -j drop

iptables -a forward -p tcp --dport 445 -j drop

iptables -a forward -p udp --dport 445 -j drop

iptables -a forward -p tcp --dport 69 -j drop

iptables -a forward -p udp --dport 69 -j drop

iptables -a forward -p tcp --dport 135 -j drop

iptables -a forward -p udp --dport 135 -j drop

iptables -a forward -p tcp --dport 139 -j drop

iptables -a forward -p udp --dport 139 -j drop

service iptables status

[root@lacl-001 ~]$

閘道器伺服器

之前想著要把什麼什麼給寫一下,每次都太懶了,都是想起了才來寫一下。今天只討論遊戲伺服器的閘道器伺服器。1.2.心跳 閘道器定時傳送心跳給連線在這個閘道器上的所有客戶端,保證客戶端與閘道器的連線,如果某個客戶端掉線了,那麼閘道器就通知各個伺服器去做玩家的下線處理 3.負載均衡 多閘道器來支援平衡遊戲負...

閘道器伺服器

之前想著要把什麼什麼給寫一下,每次都太懶了,都是想起了才來寫一下。今天只討論遊戲伺服器的閘道器伺服器。1.2.心跳 閘道器定時傳送心跳給連線在這個閘道器上的所有客戶端,保證客戶端與閘道器的連線,如果某個客戶端掉線了,那麼閘道器就通知各個伺服器去做玩家的下線處理 3.負載均衡 多閘道器來支援平衡遊戲負...

閘道器伺服器的作用

閘道器伺服器的作用 金慶的專欄 網遊伺服器架構中一般會有一層閘道器伺服器對外用於客戶端連線。閘道器伺服器的作用應該是 聚合客戶的不同業務。客戶端只需連線一個閘道器,不同業務由閘道器分發到不同的功能伺服器。如果功能分得極細,如組隊功能由伺服器a處理,裝備升級由b處理,c,d,客戶端不應該直接連線a,b...

firewalld配置閘道器伺服器

1,在主機a上開啟防火牆 root c7 41 systemctl start firewalld.service2,插入ip 並生效 root c7 41 vim etc sysctl.conf root c7 41 cat etc sysctl.conf grep v net.ipv4.ip f...

FTP伺服器iptables的配置

系統 centos6.2 軟體 vsftpd,iptables 安裝完系統後,預設的iptables的規則只允許狀態為related estabilished的包和sshd的資料包進入伺服器,當安裝好vsftpd後,通常需要在iptables上面放開21埠,完整的iptables配置如下 客戶端使用...