Skip to content
/ icmp_exp Public

The application allows you to respond to ICMP requests exponentially

Notifications You must be signed in to change notification settings

esin/icmp_exp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICMP Exponent

Info

The application allows you to respond to ICMP requests exponentially, constantly increasing the timeout between requests by 2 times until it reaches 1048576 msecs (17 minutes).

Building

Just go mod tidy && go build .

Manual for launching

Run commands from root:

  1. Disable icmp reply from kernel: echo 1 | tee /proc/sys/net/ipv4/icmp_echo_ignore_all
  2. Allow using raw sockets: echo 1 | tee /proc/sys/net/ipv4/ping_group_range
  3. Allow rules in iptables:
    iptables -I OUTPUT -p icmp --icmp-type echo-reply -j ACCEPT
    iptables -I OUTPUT -p icmp --icmp-type echo-reply -j ACCEPT
    
  4. Allow run binary from regular user: setcap cap_net_raw+ep icmp_exp

Systemd part

  1. Put binary to /usr/local/bin/
  2. Create /etc/systemd/system/icmp_exp.service
  3. Put everything from icmp_exp.service
  4. Change User/Group
  5. Reload: systemctl daemon-reload
  6. Run and enable autostart: systemctl start icmp_exp; systemctl enable icmp_exp

About

The application allows you to respond to ICMP requests exponentially

Topics

Resources

Stars

Watchers

Forks