Add support for changing ICMP listen address #77

Merged
srgykuz merged 1 commit from icmp-listen into master 2025-12-29 04:37:42 -05:00
srgykuz commented 2025-12-29 03:21:26 -05:00 (Migrated from github.com)

This PR adds support for changing ICMP listen address. Currently, the listener listens on 0.0.0.0. This PR adds support for changing the address, for example to 127.0.0.2.

I needed to execute both client and server on the same host. Otherwise, how do you test it? When executing both on the same host, ping and pong results in an infinite loop, because client handles ping and pong at the same time, as ping traffic have same address as client. Same logic for server. Same logic for other ICMP traffic. After specifying 127.0.0.1 for client and 127.0.0.2 for server, the problem resolves.

This PR adds support for changing ICMP listen address. Currently, the listener listens on `0.0.0.0`. This PR adds support for changing the address, for example to `127.0.0.2`. I needed to execute both client and server on the same host. Otherwise, how do you test it? When executing both on the same host, ping and pong results in an infinite loop, because client handles ping and pong at the same time, as ping traffic have same address as client. Same logic for server. Same logic for other ICMP traffic. After specifying `127.0.0.1` for client and `127.0.0.2` for server, the problem resolves.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
esrrhs/pingtunnel!77
No description provided.