I'm trying to write IPtables rules,but I'm finding it difficult.
iptables -A FORWARD -m state –state RELATED,ESTABLISHED -j ACCEPT
which fails with Bad argument `–state'
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT –to server.ip
which fails with Bad argument `–to'
How do I rectify the rules?