Firewall

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Firewall as PDF for free.

More details

  • Words: 94
  • Pages: 1
#!/bin/sh 1. chkconfig: 3 21 91 2. description: firewall ipt=/sbin/iptables case "$1" in start) $ipt -a input $ipt -a input $ipt -a input $ipt -a input $ipt -a input

-i -i -i -i -i

eth0 eth0 eth0 eth0 eth0

-m -p -p -p -p

state --state established,related -j accept tcp --dport 20130 -j accept tcp --dport 20110-j accept udp --dport 20100 -j accept tcp --dport 20120 -j accept

$ipt -a input -i eth0 -j reject exit 0 ;; stop) $ipt -f input exit 0 ;; *) echo "usage: /etc/init.d/firewall {start|stop}" exit 1 ;; esac

Related Documents

Firewall
July 2020 24
Firewall
November 2019 38
Firewall
May 2020 19
Firewall
June 2020 19
Firewall
October 2019 25
Firewall
October 2019 16