diff options
author | PÁLI Gábor János <pali.gabor@gmail.com> | 2022-05-14 22:59:37 +0200 |
---|---|---|
committer | PÁLI Gábor János <pali.gabor@gmail.com> | 2022-05-14 23:44:51 +0200 |
commit | 972aa5cee272ad68b475dcb31baa780f08ce2559 (patch) | |
tree | 7e3384c4efbe729e51eb2678bdcdfad864fc78a9 /etc/iptables.sample | |
parent | 1a098a35e786fbf23177750f6fa3517cf77fd3e0 (diff) | |
download | freebsd-wifibox-alpine-972aa5cee272ad68b475dcb31baa780f08ce2559.zip |
Expose IP Tables configuration.
Diffstat (limited to 'etc/iptables.sample')
-rw-r--r-- | etc/iptables.sample | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/etc/iptables.sample b/etc/iptables.sample new file mode 100644 index 0000000..af60a63 --- /dev/null +++ b/etc/iptables.sample @@ -0,0 +1,23 @@ +# This file contains exported IP Tables data that can be read by the +# iptables-restore(8) utility. It is not meant to be edited by hand +# but regenerated by the iptables-save(8) utility after the necessary +# changes were made via the respective iptables(8) commands. +# +# The IP Tables stored here implement a simplistic IP forwarding and +# NAT between the `eth0` (virtual Ethernet, facing towards the host) +# and `wlan0` (wireless networking) interfaces. + +*filter +:INPUT ACCEPT [0:0] +:FORWARD ACCEPT [0:0] +:OUTPUT ACCEPT [0:0] +[0:0] -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT +[0:0] -A FORWARD -i eth0 -o wlan0 -j ACCEPT +COMMIT +*nat +:PREROUTING ACCEPT [0:0] +:INPUT ACCEPT [0:0] +:OUTPUT ACCEPT [0:0] +:POSTROUTING ACCEPT [0:0] +[0:0] -A POSTROUTING -o wlan0 -j MASQUERADE +COMMIT |