最近2018中文字幕在日韩欧美国产成人片_国产日韩精品一区二区在线_在线观看成年美女黄网色视频_国产精品一区三区五区_国产精彩刺激乱对白_看黄色黄大色黄片免费_人人超碰自拍cao_国产高清av在线_亚洲精品电影av_日韩美女尤物视频网站

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
iptables常用命令-創(chuàng)新互聯(lián)

成都創(chuàng)新互聯(lián)服務(wù)項(xiàng)目包括興平網(wǎng)站建設(shè)、興平網(wǎng)站制作、興平網(wǎng)頁制作以及興平網(wǎng)絡(luò)營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢、行業(yè)經(jīng)驗(yàn)、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,興平網(wǎng)站推廣取得了明顯的社會(huì)效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到興平省份的部分城市,未來相信會(huì)繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!># Flush all policy iptables -F iptables -X iptables -Z iptables -t nat -F iptables -t nat -X iptables -t nat -Z iptables -S INPUT #查看鏈策略,默認(rèn)是filter表 # Enable ip forward echo "1" > /proc/sys/net/ipv4/ip_forward # module modprobe ip_conntrack_ftp modprobe ip_conntrack_tftp modprobe ip_nat_ftp modprobe ip_nat_tftp # # Default policy iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -P FORWARD ACCEPT # Enable lo interface iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT # DNS lookup iptables -A OUTPUT -o eth0 -p udp --dport 53 -j ACCEPT iptables -A INPUT -i eth0 -p udp --sport 53 -j ACCEPT # SSH Server iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 22 -j ACCEPT iptables -A OUTPUT -d 192.168.0.0/24 -p tcp --sport 22 -j ACCEPT # SSH client iptables -A OUTPUT -d 192.168.0.0/24 -p tcp --dport 22 -j ACCEPT iptables -A INPUT -s 192.168.0.0/24 -p tcp --sport 22 -j ACCEPT # icmp request iptables -A INPUT -s 192.168.0.0/24 -p icmp --icmp-type 8 -j ACCEPT iptables -A OUTPUT -d 192.168.0.0/24 -p icmp --icmp-type 0 -j ACCEPT # icmp echo iptables -A OUTPUT -d 192.168.0.0/24 -p icmp --icmp-type 8 -j ACCEPT iptables -A INPUT -s 192.168.0.0/24 -p icmp --icmp-type 0 -j ACCEPT # FTP server iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 21 -j ACCEPT iptables -A OUTPUT -d 192.168.0.0/24 -p tcp --sport 21 -j ACCEPT iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT # SNAT iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to-source 1.2.3.4 # DNAT iptables -t nat -A PREROUTING -s 192.168.0.0/24 -p tcp --dport 80 -j DNAT --to-dest 192.168.0.254
網(wǎng)站標(biāo)題:iptables常用命令-創(chuàng)新互聯(lián)
鏈接地址:http://fisionsoft.com.cn/article/cesedi.html