:pkttype => 'multicast',
},
},
+ 'socket_option' => {
+ :line => '-A PREROUTING -m socket -j ACCEPT',
+ :table => 'mangle',
+ :params => {
+ :action => 'accept',
+ :chain => 'PREROUTING',
+ :socket => true,
+ },
+ },
}
# This hash is for testing converting a hash to an argument line.
},
:args => ["-t", :filter, "-i", "eth0", "-p", :tcp, "-m", "pkttype", "--pkt-type", :multicast, "-m", "comment", "--comment", "062 pkttype multicast", "-j", "ACCEPT"],
},
+ 'socket_option' => {
+ :params => {
+ :name => '050 socket option',
+ :table => 'mangle',
+ :action => 'accept',
+ :chain => 'PREROUTING',
+ :socket => true,
+ },
+ :args => ['-t', :mangle, '-m', 'socket', '-j', 'ACCEPT'],
+ },
}