Skip to content
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

New option for "outgoing interface" #62

Open
schweikert opened this issue Apr 17, 2014 · 1 comment
Open

New option for "outgoing interface" #62

schweikert opened this issue Apr 17, 2014 · 1 comment

Comments

@schweikert
Copy link
Owner

I am not sure that this is possible, but it would be useful to be able to specify a "outgoing interface". This would work similarly to the '-I' option, but would only affect the "ICMP ECHO REQUEST" packets and would allow for the "REPLY" to be coming from a different interface.

@schweikert schweikert self-assigned this Jun 5, 2014
@schweikert schweikert removed the ready label Jun 5, 2014
@schweikert schweikert removed their assignment Jan 12, 2017
@logan2211
Copy link

logan2211 commented Sep 10, 2019

This can be accomplished easily once #158 is added

echo '500 alt_interface' >> /etc/iproute2/rt_tables
ip route add default dev alt_interface table alt_interface
ip rule add fwmark 500 lookup alt_interface
fping --mark 500 1.1.1.1

Will send packets using alt_interface and accept replies a different incoming interface (depending on rp_filter settings).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants