All pastes #205019 Raw Edit

Stuff

public text v1 · immutable
#205019 ·published 2006-10-16 13:26 UTC
rendered paste body
ext_if="rl0"
int_if="sis0"

set skip on lo

nat-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"
nat on $ext_if from 10.80.15.0/24 -> ($ext_if:0)
rdr on $int_if proto tcp to port ftp -> 127.0.0.1 port 8021
rdr on $ext_if proto tcp to port 25 -> 10.80.15.254 port 25
rdr on $int_if proto tcp to myhost.com port 80 -> 10.80.15.254 port 80
rdr on $ext_if proto tcp from any to ($ext_if:0) port 80 -> 10.80.15.254 port 80
rdr on $ext_if proto tcp from any to ($ext_if:0) port 21 -> 10.80.15.254

anchor "ftp-proxy/*"
pass all