You are on page 1of 2

SELINUX COMMANDS

1} For NIS user:Setsebool P allow_ypbind=1 2} POP command for IPTABLES a) Iptables A INPUT p tcp s 172.24.0.0/16 --dport 110 j ACCEPT {to allow our network} b) IPTABLES A INPUT p tcp s 172.25.0.0/16 --dport j REJECT { to reject other network} c) IPTABLES A INPUT p tcp s ! 172.24.0.0/16 --dport 110 j REJECT 3} HTTP:restorecon R v /var/www/html/index.html restorecon R v /var/www/virtual/index.html 4} FTP:a) chcon t public_content_rw_t /var/ftp/pub {to match the contents} b) setsebool P ftp_home_dir=1 c) setsebool P allow_ftpd_anon_write=1 d) setsebool P allow_ftpd_full_access=1 5} SAMBA:Chcon t samba_share_t /share dir 6} SQUID:Setsebool P squid_disable_trans=1 7} IMAP:a) Iptables A INPUT p tcp s 172.24.0.0/16 dport 993 j ACCEPT {to allow our network}
Kishore kumar sharma

b) IPTABLES A INPUT p tcp s 172.25.0.0/16 --dport 993 j REJECT { to reject other network} c) IPTABLES A INPUT p tcp s ! 172.24.0.0/16 --dport 993 j REJECT

Kishore kumar sharma

You might also like