I have an iptables rule in the FORWARD section that looks like this:

17       0     0 CONFIRMED  tcp  --  *      *         tcp spt:587 dpt:587 ctorigdst 

What command would I need to run to create that rule?


Executing iptables-save will dump your current iptables ruleset to stdout, in turn showing you the commands used to create your firewall ruleset, minus the iptables command

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.