Commit ad5655a4 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen
Browse files

support for MARK target

parent 1b3c188b
Packet marking module for Alpine Wall
Copyright (C) 2012 Kaarle Ritvanen
Licensed under the terms of GPL2
module(..., package.seeall)
require 'awall.model'
local model = awall.model
local MarkRule = model.class(model.ForwardOnlyRule)
function MarkRule:table() return 'mangle' end
function MarkRule:target()
if not self.mark then self:error('Mark not specified') end
return 'MARK --set-mark '..self.mark
classes = {{'mark', MarkRule}}
defrules = {}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment