-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/pr/407'
* origin/pr/407: Remove an unneded use of cat Add permanent neighbor entries again Replace iptables with nftables Use appropriate rpm macros
- Loading branch information
Showing
22 changed files
with
491 additions
and
803 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
etc/dhclient.d/qubes-setup-dnat-to-ns.sh | ||
etc/qubes-rpc/qubes.UpdatesProxy | ||
etc/qubes/ip6tables.rules | ||
etc/qubes/ip6tables-enabled.rules | ||
etc/qubes/iptables.rules | ||
etc/qubes/qubes-ipv6-disabled.nft | ||
etc/qubes/qubes-ipv6.nft | ||
etc/qubes/qubes-ipv4.nft | ||
etc/qubes/qubes-antispoof.nft | ||
etc/sysctl.d/81-qubes.conf.optional | ||
etc/tinyproxy/tinyproxy-updates.conf | ||
etc/tinyproxy/updates-blacklist | ||
|
@@ -11,6 +12,7 @@ etc/xen/scripts/vif-qubes-nat.sh | |
etc/xen/scripts/vif-route-qubes | ||
lib/systemd/system/qubes-firewall.service | ||
lib/systemd/system/qubes-iptables.service | ||
lib/systemd/system/qubes-antispoof.service | ||
lib/systemd/system/qubes-network.service | ||
lib/systemd/system/qubes-network-uplink.service | ||
lib/systemd/system/[email protected] | ||
|
@@ -20,7 +22,6 @@ usr/lib/qubes/init/network-proxy-setup.sh | |
usr/lib/qubes/init/network-proxy-stop.sh | ||
usr/lib/qubes/init/network-uplink-wait.sh | ||
usr/lib/qubes/init/qubes-iptables | ||
usr/lib/qubes/get-dns-from-resolved | ||
usr/lib/qubes/qubes-setup-dnat-to-ns | ||
usr/lib/qubes/setup-ip | ||
usr/lib/tmpfiles.d/qubes-core-agent-linux.conf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/sbin/nft -f | ||
table ip qubes { | ||
set downstream { | ||
type ipv4_addr | ||
} | ||
|
||
set allowed { | ||
type ifname . ipv4_addr | ||
} | ||
|
||
chain prerouting { | ||
type filter hook prerouting priority raw; policy accept; | ||
iifgroup 2 goto antispoof | ||
ip saddr @downstream counter drop | ||
} | ||
|
||
chain antispoof { | ||
iifname . ip saddr @allowed accept | ||
counter drop | ||
} | ||
} | ||
|
||
table ip6 qubes { | ||
set downstream { | ||
type ipv6_addr | ||
} | ||
|
||
set allowed { | ||
type ifname . ipv6_addr | ||
} | ||
|
||
chain antispoof { | ||
iifname . ip6 saddr @allowed accept | ||
counter drop | ||
} | ||
|
||
chain prerouting { | ||
type filter hook prerouting priority raw; policy accept; | ||
iifgroup 2 goto antispoof | ||
ip6 saddr @downstream counter drop | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/sbin/nft -f | ||
table ip qubes { | ||
chain postrouting { | ||
type nat hook postrouting priority srcnat; policy accept; | ||
oifgroup 2 accept | ||
oif lo accept | ||
masquerade | ||
} | ||
|
||
chain input { | ||
type filter hook input priority filter; policy drop; | ||
jump custom-input | ||
ct state invalid counter drop | ||
iifgroup 2 meta l4proto udp udp dport 68 counter drop | ||
ct state related,established accept | ||
iifgroup 2 meta l4proto icmp accept | ||
iif lo accept | ||
iifgroup 2 counter reject with icmp type host-prohibited | ||
counter | ||
} | ||
|
||
chain forward { | ||
type filter hook forward priority filter; policy accept; | ||
jump custom-forward | ||
ct state invalid counter drop | ||
ct state related,established accept | ||
iifgroup != 2 counter drop | ||
oifgroup 2 counter drop | ||
} | ||
|
||
# These chains are reserved for end-users. Qubes OS itself will | ||
# never modify them. | ||
chain custom-input {} | ||
chain custom-forward {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/sbin/nft -f | ||
table ip6 qbs-filter { | ||
chain input { | ||
type filter hook input priority filter; policy drop; | ||
iif lo accept | ||
counter | ||
} | ||
|
||
chain forward { | ||
type filter hook forward priority filter; policy drop; | ||
counter | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/sbin/nft -f | ||
table ip6 qubes { | ||
chain postrouting { | ||
type nat hook postrouting priority srcnat; policy accept; | ||
oifgroup 2 accept | ||
oif lo accept | ||
masquerade | ||
} | ||
|
||
chain _icmpv6 { | ||
meta l4proto != ipv6-icmp counter reject with icmpv6 type admin-prohibited | ||
icmpv6 type { nd-router-advert, nd-redirect } counter drop | ||
accept | ||
} | ||
|
||
chain input { | ||
type filter hook input priority filter; policy drop; | ||
jump custom-input | ||
ct state invalid counter drop | ||
ct state related,established accept | ||
iifgroup 2 goto _icmpv6 | ||
iif lo accept | ||
meta l4proto udp ip6 saddr fe80::/64 ip6 daddr fe80::/64 udp dport 546 accept | ||
meta l4proto ipv6-icmp accept | ||
counter | ||
} | ||
|
||
chain forward { | ||
type filter hook forward priority filter; policy accept; | ||
ct state invalid counter drop | ||
ct state related,established accept | ||
iifgroup != 2 counter drop | ||
oifgroup 2 counter drop | ||
} | ||
|
||
# These chains are reserved for end-users. Qubes OS itself will | ||
# never modify them. | ||
chain custom-input {} | ||
chain custom-forward {} | ||
} |
Oops, something went wrong.