Re: marks and speed

Whit Blauvelt <[email protected]>
Newsgroups gmane.comp.security.firewalls.firehol.user,gmane.comp.security.firewalls.firehol.devel
Message-ID <[email protected]>
On Sat, Jan 24, 2015 at 03:12:30PM +0200, Tsaousis, Costa wrote:

> The FireHOL suite (firehol, fireqos, link-balancer) now supports
> internally 2 types of marks: usermarks and connmarks.

Nice!

The way I've been enabling Openswan IPsec to work from a server with the
previous FireHOL is like this (in firehol.conf ahead of the standard stuff):
  
  # IPsec mangling
  # Mark IPsec, and allow decrypted IPsec
  
  iptables -t mangle -A PREROUTING -p 17 --dport 500 -j MARK --set-mark 1 # udp/isakmp
  iptables -t mangle -A PREROUTING -p 50 -j MARK --set-mark 1 # esp
  iptables -t filter -A INPUT -m mark --mark 1 -j ACCEPT
  iptables -t filter -A FORWARD -m mark --mark 1 -j ACCEPT
  iptables -t filter -A OUTPUT -m mark --mark 1 -j ACCEPT
  
  # don't SNAT IPsec
  
  rightsubnets=( 172.30.0.0/24 10.242.0.0/22 172.16.11.0/24 )
  for rightsubnet in "${rightsubnets[@]}"; do
          iptables -t nat -I POSTROUTING -d $rightsubnet -j ACCEPT
  done

What would the translation of that to the new FireHOL syntax look like?

Thanks,

Whit
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.