Sep 22, 2007

iptables -t mangle -A PREROUTING -j HMARK --hmark-offset 10000 --hmark-tuple src,dst,proto --hmark-mod 10 --hmark-rnd 0xdeafbeef IDLETIMER This target can be used to identify when interfaces have been idle for a certain period of time. Timers are identified by … Linux Packet Filtering and iptables - TOS target iptables -t mangle -A PREROUTING -p TCP --dport 22 -j TOS --set-tos 0x10: Explanation: The --set-tos option tells the TOS mangler what TOS value to set on packets that are matched. The option takes a numeric value, either in hex or in decimal value. As the TOS value consists of 8 bits, the value may be 0-255, or in hex 0x00-0xFF. Note that in Meanings of IPTABLES mangle table - LinuxQuestions.org Feb 14, 2011 Iptables Tutorial: Ultimate Guide to Linux Firewall

The mangle table can be used for special-purpose processing of packets. Series of rules in each table are called a chain. We will discuss chains and the nat table later in this chapter. iptables -t nat -A POSTROUTING -o eth1 -s 10.1.1.0/24 -j SNAT \ --to-source 11.12.13.14.

Meanings of IPTABLES mangle table - LinuxQuestions.org

How to edit iptables rules - Fedora Project Wiki

iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1452 This sort of thing is messy and ideally should be avoided, but I had no other options and this did solve the problem. Hope these examples help, as well as the man page. IptablesHowTo - Community Help Wiki Apr 11, 2020