This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lair:cist.lan:start:routerconfig [2014/04/29 17:28] – [Router Configuration] ahughe12 | lair:cist.lan:start:routerconfig [2014/04/30 15:28] (current) – [Down to Brass Tacks] eolson1 | ||
---|---|---|---|
Line 12: | Line 12: | ||
file " | file " | ||
// | // | ||
- | } | + | }; |
</ | </ | ||
Line 620: | Line 620: | ||
The cist.lan router will be connecting directly to projects.lan, | The cist.lan router will be connecting directly to projects.lan, | ||
- | ====Down to Brass Tax==== | + | ====Down to Brass Tacks==== |
---- | ---- | ||
Line 664: | Line 664: | ||
* Note: An " | * Note: An " | ||
+ | |||
+ | |||
+ | ===pf.conf configuration=== | ||
+ | ---- | ||
+ | |||
+ | < | ||
+ | # | ||
+ | # | ||
+ | # See pf.conf(5) for syntax and examples. | ||
+ | # Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1 | ||
+ | # in / | ||
+ | |||
+ | # increase default state limit from 10'000 states on busy systems | ||
+ | #set limit states 100000 | ||
+ | |||
+ | ext_if=" | ||
+ | int_if=" | ||
+ | lnet=" | ||
+ | |||
+ | |||
+ | set skip on { lo } | ||
+ | |||
+ | # filter rules and anchor for ftp-proxy(8) | ||
+ | #anchor " | ||
+ | #pass in quick inet proto tcp to port ftp divert-to 127.0.0.1 port 8021 | ||
+ | |||
+ | # anchor for relayd(8) | ||
+ | #anchor " | ||
+ | |||
+ | block in on $ext_if | ||
+ | pass in on $int_if | ||
+ | |||
+ | pass out on { $int_if } from any to any keep state | ||
+ | |||
+ | pass quick inet proto icmp from any to any keep state | ||
+ | antispoof quick for { $int_if, $ext_if } inet | ||
+ | pass in quick on { $int_if, $ext_if } proto tcp flags S/SA keep state | ||
+ | |||
+ | |||
+ | |||
+ | # rules for spamd(8) | ||
+ | #table < | ||
+ | #table < | ||
+ | #pass in on egress proto tcp from any to any port smtp \ | ||
+ | # rdr-to 127.0.0.1 port spamd | ||
+ | #pass in on egress proto tcp from < | ||
+ | #pass in log on egress proto tcp from < | ||
+ | #pass out log on egress proto tcp to any port smtp | ||
+ | |||
+ | |||
+ | #block in quick from urpf-failed to any # use with care | ||
+ | |||
+ | # By default, do not permit remote connections to X11 | ||
+ | block in on ! lo0 proto tcp to port 6000:6010 | ||
+ | </ | ||
+ |