|
Iptables Tutorial 1.2.2Since SELinux is out of the scope of this document, I suggest going to the Security-Enhanced Linux webpage for more information. In brief, SELinux is a new and improved security system to add Mandatory Access Control (MAC) to Linux, implemented by NSA as a proof of concept. SELinux basically sets security attributes for different objects and then matches them into security contexts. The SECMARK target is used to set a security context on a packet which can then be used within the security subsystems to match on. The SECMARK target is only valid in the mangle table. Table 11-16. SECMARK target options Option --selctx Example iptables -t mangle -A PREROUTING -p tcp --dport 80 -j SECMARK --selctx httpcontext Explanation The --selctx option is used to specify which security context to set on a packet. The context can then be used for matching inside the security systems of linux. SNAT target The SNAT target is used to do Source Network Address Translation, which means that this target will rewrite the Source IP address in the IP header of the packet ...» | Код для вставки книги в блог HTML
phpBB
текст
|
|