doc:appunti:net:source_routing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:net:source_routing [2021/10/13 16:41] – [Firewall dual homed e source routing con Shorewall] niccolo | doc:appunti:net:source_routing [2025/10/07 10:56] (current) – [Firewall dual homed e source routing con Shorewall] niccolo | ||
---|---|---|---|
Line 66: | Line 66: | ||
Attenzione alla **priorità delle regole** (rules)! Il numero più basso ha priorità maggiore, se non viene indicato il parametro **'' | Attenzione alla **priorità delle regole** (rules)! Il numero più basso ha priorità maggiore, se non viene indicato il parametro **'' | ||
+ | |||
====== Source IP con ip route ====== | ====== Source IP con ip route ====== | ||
Line 77: | Line 78: | ||
ip route add 78.47.114.234/ | ip route add 78.47.114.234/ | ||
</ | </ | ||
+ | |||
====== Routing in base al servizio ====== | ====== Routing in base al servizio ====== | ||
Line 151: | Line 153: | ||
* In **''/ | * In **''/ | ||
* In **''/ | * In **''/ | ||
- | * In **''/ | + | * In **''/ |
+ | * In **''/ | ||
+ | |||
+ | **''/ | ||
+ | |||
+ | < | ||
+ | # Dual-homed external interfaces require global ROUTE_FILTER=No in shorewall.conf. | ||
+ | # The safe policy for connections with untrusted peers is to set accept_source_route to 0. | ||
+ | # Notice: source route packets are nonsensical on a PPP link. | ||
+ | accept_source_route = 0 | ||
+ | net eth0 tcpflags, | ||
+ | net eth2 tcpflags, | ||
+ | # Enable route filter (rp_filter kernel paramter) specifically on the local interface. | ||
+ | loc eth1 dhcp, | ||
+ | </ | ||
**''/ | **''/ |
doc/appunti/net/source_routing.1634136078.txt.gz · Last modified: by niccolo