Go to file
Marek Marczykowski-Górecki 74f5fb5ac7
network: prevent IP spoofing on upstream (eth0) interface
Currently there is just one anti-spoofing firewall rule ensuring packets
coming through vif+ interfaces have the right source address. Add
another rule ensuring that addresses that belongs to VMs behind those
vif+ interface do not appear on other interfaces (specifically eth0, but
also physical ones).

Normally it wouldn't be an issue because of rp_filter (doing the same
based on route table), default DROP in FORWARD chain and also conntrack
(the need to guess exact port numbers and sequence numbers). But it
appears all three mechanisms are ineffective in some cases:
 - rp_filter in many distributions (including Fedora and Debian) was
 switched to Loose Mode, which doesn't verify exact interface
 - there is a rule in FORWARD table allowing established connections and
 conntrack does not keep track of input/output interfaces
 - CVE-2019-14899 allows to guess all the data needed to inject packets

Reported-by: Demi M. Obenour <demiobenour@gmail.com>
2020-11-10 15:47:25 -05:00
app-menu Fixed menu item name 2020-09-26 22:48:35 +00:00
applications-dropins Add /etc/qubes/applications override, use it for gnome-terminal 2020-01-27 14:05:55 +01:00
archlinux archlinux: disable check on unassigned pkgdir var 2020-10-21 08:37:53 +02:00
autostart-dropins Enable gnome settings daemon xsettings plugin 2018-01-12 05:44:54 +01:00
boot Merge app-defaults and sys-defaults to config-overrides 2020-02-05 00:12:22 +00:00
ci
config-overrides Merge app-defaults and sys-defaults to config-overrides 2020-02-05 00:12:22 +00:00
debian version 4.1.18 2020-10-31 05:39:07 +01:00
doc Remove qrexec-agent related files 2019-04-08 18:22:38 +02:00
filesystem Drop legacy xen entry in fstab 2020-07-26 14:30:33 +02:00
init
misc Install 50-qubes-mem-hotplug.rules in /lib/udev instead of /etc/udev 2020-02-05 00:12:23 +00:00
network
package-managers dnf-plugin: restrict to only version provided by plateform-python 2020-10-30 10:46:56 +01:00
passwordless-root
patches.debian
pkgs
qubes-rpc Merge remote-tracking branch 'origin/pr/236' 2020-09-17 03:08:56 +02:00
qubesagent
rpm_spec dnf-plugin: restrict to only version provided by plateform-python 2020-10-30 10:46:56 +01:00
test-packages
vm-init.d
vm-systemd preset: handle dom0 and sys-usb qubes-psu-client 2020-10-03 19:34:58 +02:00
.coveragerc
.gitignore
.travis.yml
debian-quilt debian: fix shellcheck warnings in debian packaging 2017-09-30 05:05:33 +02:00
LICENSE
Makefile
Makefile.builder
run-tests
series-debian-jessie-vm.conf
series-debian-stretch-vm.conf
series-debian-vm.conf
setup.py
version