[ previous ] [ next ] [ threads ]
 
 From:  Graham Dunn <gdunn at inscriber dot com>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Adding policy routing rules to xml file
 Date:  Mon, 13 Dec 2004 16:12:24 -0500
I have an ipf rule

pass out quick on sis1 to sis0:10.0.0.5 proto tcp from any to any port = 
80 keep state

which redirects all http packets that would pass out on sis1 back to a 
secondary outbound connection at 10.0.0.5.

How does one insert this into the xml construct?

<rule>
 <type>pass</type>
 <interface>wan</interface>
 <source>
  <any/>
 </source>
 <destination>
  <any/>
  <port>80</port>
 </destination>
 <descr>pass all</descr>
</rule>

But then how to specify the redirect?

Thanks,
Graham