1SHOREWALL6-PROVIDER(5) [FIXME: manual] SHOREWALL6-PROVIDER(5)
2
3
4
6 providers - Shorewall6 Providers file
7
9 /etc/shorewall6/providers
10
12 This file is used to define additional routing tables. You will want to
13 define an additional table if:
14
15 · You have connections to more than one ISP or multiple connections
16 to the same ISP
17
18 · You run Squid as a transparent proxy on a host other than the
19 firewall.
20
21 · You have other requirements for policy routing.
22
23 Each entry in the file defines a single routing table.
24
25 If you wish to omit a column entry but want to include an entry in the
26 next column, use "-" for the omitted entry.
27
28 The columns in the file are as follows.
29
30 NAME - name
31 The provider name. Must be a valid shell variable name. The names
32 'local', 'main', 'default' and 'unspec' are reserved and may not be
33 used as provider names.
34
35 NUMBER - number
36 The provider number -- a number between 1 and 15. Each provider
37 must be assigned a unique value.
38
39 MARK (Optional) - value
40 A FWMARK value used in your shorewall6-tcrules(5)[1] file to direct
41 packets to this provider.
42
43 If HIGH_ROUTE_MARKS=Yes in shorewall6.conf(5)[2], then the value
44 must be a multiple of 256 between 256 and 65280 or their
45 hexadecimal equivalents (0x0100 and 0xff00 with the low-order byte
46 of the value being zero). Otherwise, the value must be between 1
47 and 255. Each provider must be assigned a unique mark value. This
48 column may be omitted if you don't use packet marking to direct
49 connections to a particular provider and you don't specify track in
50 the OPTIONS column.
51
52 DUPLICATE - routing-table-name
53 The name of an existing table to duplicate to create this routing
54 table. May be main or the name of a previously listed provider. You
55 may select only certain entries from the table to copy by using the
56 COPY column below.
57
58 INTERFACE - interface
59 The name of the network interface to the provider. Must be listed
60 in shorewall6-interfaces(5)[3].
61
62 GATEWAY - {-|address|detect}
63 The IP address of the provider's gateway router.
64
65 You can enter "detect" here and Shorewall6 will attempt to detect
66 the gateway automatically.
67
68 For PPP devices, you may omit this column.
69
70 OPTIONS (Optional) - [-|option[,option]...]
71 A comma-separated list selected from the following. The order of
72 the options is not significant but the list may contain no embedded
73 whitespace.
74
75 track
76 If specified, inbound connections on this interface are to be
77 tracked so that responses may be routed back out this same
78 interface.
79
80 You want to specify track if internet hosts will be connecting
81 to local servers through this provider.
82
83 Beginning with Shorewall 4.4.3, track defaults to the setting
84 of the TRACK_PROVIDERS option in shorewall6.conf[4] (5). If you
85 set TRACK_PROVIDERS=Yes and want to override that setting for
86 an individual provider, then specify notrack (see below).
87
88 loose
89 Shorewall6 normally adds a routing rule for each IP address on
90 an interface which forces traffic whose source is that IP
91 address to be sent using the routing table for that interface.
92 Setting loose prevents creation of such rules on this
93 interface.
94
95 notrack
96 Added in Shorewall 4.4.3. When specified, turns off track.
97
98 optional
99 If the interface named in the INTERFACE column is not up and
100 configured with an IPv4 address then ignore this provider. If
101 not specified, the value of the optional option for the
102 INTERFACE in shorewall6-interfaces(5)[3] is assumed.
103
104 src=source-address
105 Specifies the source address to use when routing to this
106 provider and none is known (the local client has bound to the 0
107 address). May not be specified when an address is given in the
108 INTERFACE column. If this option is not used, Shorewall6
109 substitutes the primary IP address on the interface named in
110 the INTERFACE column.
111
112 mtu=number
113 Specifies the MTU when forwarding through this provider. If not
114 given, the MTU of the interface named in the INTERFACE column
115 is assumed.
116
117 COPY - [{none|interface[,interface]...}]
118 A comma-separated list of other interfaces on your firewall.
119 Wildcards specified using an asterisk ("*") are permitted (e.g.,
120 tun* ). Usually used only when DUPLICATE is main. Only copy routes
121 through INTERFACE and through interfaces listed here. If you only
122 wish to copy routes through INTERFACE, enter none in this column.
123
125 Example 1:
126 You run squid in your DMZ on IP address 2002:ce7c:92b4:1::2. Your
127 DMZ interface is eth2
128
129 #NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS
130 Squid 1 1 - eth2 2002:ce7c:92b4:1::2 -
131
132 Example 2:
133 eth0 connects to ISP 1. The ISP's gateway router has IP address
134 2001:ce7c:92b4:1::2.
135
136 eth1 connects to ISP 2. The ISP's gateway router has IP address
137 2001:d64c:83c9:12::8b.
138
139 eth2 connects to a local network.
140
141 #NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS COPY
142 ISP1 1 1 main eth0 2001:ce7c:92b4:1::2 track eth2
143 ISP2 2 2 main eth1 2001:d64c:83c9:12::8b track eth2
144
146 /etc/shorewall6/providers
147
149 http://shorewall.net/MultiISP.html
150
151 shorewall6(8), shorewall6-accounting(5), shorewall6-actions(5),
152 shorewall6-blacklist(5), shorewall6-hosts(5), shorewall6-interfaces(5),
153 shorewall6-maclist(5), shorewall6-params(5), shorewall6-policy(5),
154 shorewall6-route_rules(5), shorewall6-routestopped(5),
155 shorewall6-rules(5), shorewall6.conf(5), shorewall6-secmarks(5),
156 shorewall6-tcclasses(5), shorewall6-tcdevices(5),
157 shorewall6-tcrules(5), shorewall6-tos(5), shorewall6-tunnels(5),
158 shorewall6-zones(5)
159
161 1. shorewall6-tcrules(5)
162 http://www.shorewall.net/manpages6/shorewall6-tcrules.html
163
164 2. shorewall6.conf(5)
165 http://www.shorewall.net/manpages6/shorewall6.conf.html
166
167 3. shorewall6-interfaces(5)
168 http://www.shorewall.net/manpages6/shorewall6-interfaces.html
169
170 4. shorewall6.conf
171 http://www.shorewall.net/manpages6/shorwewall6.conf.html
172
173
174
175[FIXME: source] 09/16/2011 SHOREWALL6-PROVIDER(5)