Changeset 8ecd62957f2caca419e633605e4b81d2936660ae
- Timestamp:
- 04/06/09 09:08:31 (3 years ago)
- Author:
- Neutron Soutmun <neo.neutron@…>
- Children:
- ae7e7e4f3e3672207f051839f33df6649f41dca1
- Parents:
- b5e3f15c3ecb424e105dd5a93288c5f134de6816
- git-committer:
- Neutron Soutmun <neo.neutron@…> (04/06/09 09:08:31)
- Message:
-
Add additional firewall rules to allow clients
2009-04-06 Neutron Soutmun <neo.neutron@…>
- example/firewall.sh.in: Add the additional rules to allow in some situation
the connections could not established before the FORWARD rules allow the
clients, thus the connections never mark. Just allow them passthrough the
rules if the connections do not mark but the clients are in the set
(allow them).
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rb5e3f15
|
r8ecd629
|
|
| | 1 | 2009-04-06 Neutron Soutmun <neo.neutron@gmail.com> |
| | 2 | |
| | 3 | * example/firewall.sh.in: Add the additional rules to allow in some situation |
| | 4 | the connections could not established before the FORWARD rules allow the |
| | 5 | clients, thus the connections never mark. Just allow them passthrough the |
| | 6 | rules if the connections do not mark but the clients are in the set |
| | 7 | (allow them). |
| | 8 | |
| 1 | 9 | 2009-04-06 Neutron Soutmun <neo.neutron@gmail.com> |
| 2 | 10 | |
-
|
r96fd481
|
r8ecd629
|
|
| 246 | 246 | $DEV_IN_PARAM $DEV_INTERNAL -s $CLIENTS \ |
| 247 | 247 | -j $CHAIN_FORWARD |
| | 248 | |
| | 249 | # In some situation the connections could not established before |
| | 250 | # the FORWARD rules allow the clients, thus the connections never mark. |
| | 251 | # Just allow them passthrough the rules if the connections do not mark but |
| | 252 | # the clients are in the set (allow them). |
| | 253 | $IPTABLES $action FORWARD -m set --set $SETNAME dst -j $CHAIN_FORWARD_AUTH |
| | 254 | $IPTABLES $action FORWARD -m set --set $SETNAME src -j $CHAIN_FORWARD_AUTH |
| | 255 | |
| 248 | 256 | $IPTABLES $action FORWARD -m connmark --mark 2/2 \ |
| 249 | 257 | $DEV_OUT_PARAM $DEV_INTERNAL -d $CLIENTS \ |