... | ... | @@ -23,12 +23,10 @@ yum -y install dhcp syslinux xinetd tftp-server dracut-network |
|
|
|
|
|
```
|
|
|
# DHCP
|
|
|
iptables -I INPUT 1 -s 10.1.1.0/24 -m state --state NEW,RELATED,ESTABLISHED -p udp --dport 67 -j ACCEPT
|
|
|
iptables -I INPUT 1 -s 10.1.1.0/24 -m state --state NEW,RELATED,ESTABLISHED -p udp --dport 68 -j ACCEPT
|
|
|
|
|
|
iptables -I INPUT 1 -s 10.1.1.0/24 -m state --state NEW,RELATED,ESTABLISHED -p udp --dport 67 -j ACCEPT
|
|
|
iptables -I INPUT 1 -s 10.1.1.0/24 -m state --state NEW,RELATED,ESTABLISHED -p udp --dport 68 -j ACCEPT
|
|
|
# TFTP
|
|
|
iptables -I INPUT 1 -s 10.1.1.0/24 -m state --state NEW,RELATED,ESTABLISHED -p udp --dport 69 -j ACCEPT
|
|
|
|
|
|
iptables -I INPUT 1 -s 10.1.1.0/24 -m state --state NEW,RELATED,ESTABLISHED -p udp --dport 69 -j ACCEPT
|
|
|
# NFS
|
|
|
iptables -I INPUT 1 -s 10.1.1.0/24 -m state --state NEW,RELATED,ESTABLISHED -p udp --dport 111 -j ACCEPT
|
|
|
iptables -I INPUT 1 -s 10.1.1.0/24 -m state --state NEW,RELATED,ESTABLISHED -p tcp --dport 111 -j ACCEPT
|
... | ... | |