local.m4, fender.m4, radius.m4: Fixing for `fender' coming home.
[firewall] / vampire.m4
CommitLineData
775bd287 1### -*-sh-*-
bfdc045d
MW
2###
3### Firewall configuration for vampire
4###
5### (c) 2008 Mark Wooding
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This program is free software; you can redistribute it and/or modify
11### it under the terms of the GNU General Public License as published by
12### the Free Software Foundation; either version 2 of the License, or
13### (at your option) any later version.
14###
15### This program is distributed in the hope that it will be useful,
16### but WITHOUT ANY WARRANTY; without even the implied warranty of
17### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18### GNU General Public License for more details.
19###
20### You should have received a copy of the GNU General Public License
21### along with this program; if not, write to the Free Software Foundation,
22### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24###--------------------------------------------------------------------------
bfdc045d
MW
25### vampire-specific rules.
26
a4d8cae3 27m4_divert(86)m4_dnl
bfdc045d
MW
28## Externally visible services.
29allowservices inbound tcp \
29a9e571 30 ident \
bfdc045d 31 ssh \
fec59143 32 tor_public tor_directory i2p
bfdc045d 33allowservices inbound udp \
bfdc045d 34 tripe \
fec59143
MW
35 gnutella_svc \
36 i2p
bfdc045d 37
d84128ea
MW
38allowservices inbound-untrusted tcp \
39 dns \
2d2c8f25 40 lpd \
d84128ea
MW
41 netbios_ssn microsoft_ds
42allowservices inbound-untrusted udp \
43 dns \
44 tftp
42e91fdf 45
bfdc045d
MW
46## Provide syslog for evolution.
47run iptables -A inbound -j ACCEPT \
48 -s 172.29.198.2 \
49 -p udp --destination-port $port_syslog
50
d6dd88f5
MW
51## Watch outgoing Tor usage.
52run iptables -A OUTPUT -m multiport \
53 -p tcp --source-ports $port_tor_public,$port_tor_directory
54
bfdc045d
MW
55## Other interesting things.
56dnsresolver inbound
7dde20fa 57dnsserver inbound
1ee6211d 58ntpclient inbound $ntp_servers
bfdc045d 59
f5a0901e 60## Provide NTP service to untrusted clients.
94ce6e76
MW
61ip46tables -A inbound-untrusted -p udp -j ACCEPT \
62 --source-port 123 --destination-port 123
f5a0901e 63
bfdc045d
MW
64m4_divert(-1)
65###----- That's all, folks --------------------------------------------------