1 |
# Example iptables config file. |
2 |
# Note the this file uses the format of iptables-save |
3 |
# What follows is an example of this output. However, |
4 |
# the actual rule lines have been commented out. |
5 |
# DO NOT USE THE -t (table) OPTION IN THIS FILE! |
6 |
*mangle |
7 |
:PREROUTING ACCEPT [0:0] |
8 |
:OUTPUT ACCEPT [0:0] |
9 |
#-A PREROUTING -p tcp --dport 22 -j TOS --set-tos 0x10 |
10 |
COMMIT |
11 |
*filter |
12 |
:INPUT ACCEPT [0:0] |
13 |
:FORWARD ACCEPT [0:0] |
14 |
:OUTPUT ACCEPT [0:0] |
15 |
#-A FORWARD -i eth0 -j ACCEPT |
16 |
COMMIT |
17 |
*nat |
18 |
:PREROUTING ACCEPT [0:0] |
19 |
:POSTROUTING ACCEPT [0:0] |
20 |
:OUTPUT ACCEPT [0:0] |
21 |
#-A POSTROUTING -o eth0 -j MASQUERADE |
22 |
COMMIT |