How do I set FWMARK on unsolicited outgoing packets?

Solution Verified - Updated -

Issue

  • How do I set firewall marks on outgoing packets from new connections?
  • When using mark-based routing, TCP RSTs are sent to the default gateway because they do not have firewall marks on them. How do I add these marks?`

Environment

  • Red Hat Enterprise Linux 7
  • fwmark-based routing of packets
  • TCP

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In