firewall/zones/admin.nft

35 lines
854 B
Text
Raw Normal View History

2018-10-14 18:49:38 +02:00
#! /sbin/nft -f
2019-12-20 19:18:10 +01:00
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Copyright © 2018-2019 Hugo Levy-Falk <hugo@klafyvel.me>
2018-10-14 18:49:38 +02:00
table inet firewall {
chain to_admin {
2019-02-09 10:23:05 +01:00
accept
2018-10-14 18:49:38 +02:00
}
chain from_admin {
}
}
2019-01-09 00:21:24 +01:00
table nat {
2019-03-26 22:02:43 +01:00
chain admin_nat {
2019-04-30 00:12:26 +02:00
snat to $ip_self_public
2019-01-09 00:21:24 +01:00
}
}