-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] Scapy and Linux policy routing #836
Comments
Scapy has its own routing table. On Linux, its content is only based on You can submit a PR that implements reading routes from another source =) |
oh, thanks for this cool suggestion ;-). Is there any chance that this feature will land somewhere on to do list at least into sort of category "lets implement it when we stop willing to see our wives and kids till late night"? |
@rafajot if that's useful and well coded, it will land! |
It is now referenced in #399 =) |
FYI, on Linux the But, that doesn't work on other OS which is why I came to scapy in the first place. |
I have a linux host with routing policy rules that determine the gateway depending on source IP. If I set the source IP in scapy, for example
ans, unas = sr(IP(dst="180.87.124.196", src='192.xxx.xxx.xxx', ttl=1)/ICMP()/"Rozowe misie zjadaja ptysie",timeout=0.8, iface='eth3:174')
the policy routing does not work. The packet is always sent to default GW. Some time ago I saw here #762 the question about issue with scapy and iptables. So the answer was "Scapy sends packet at a low level and they are not seen by netfilter. ". I guess in this specific case the answer is going to be similar, scapy cooks packet on a different kernel layer and that's why policy based routing does not work. Is that correct?
BTW: I'm just wondering if it can have something to do with: #614
The text was updated successfully, but these errors were encountered: