linux网络扫描及安全措施

本文介绍了Linux系统下的网络扫描工具,包括通过修改内核参数禁用ICMP响应,使用fping批量Ping,利用hping进行端口扫描,以及traceroute、nmap、nc、tcpdump的使用方法。同时讨论了Linux下的安全策略,如curl、wget和netstat的运用。
摘要由CSDN通过智能技术生成

(一)

Ping是通过icmp检测的

主机可以通过修改linux内核参数来实现,对ICMP包的忽略,从而到达通过ICMP ping不同的效果。

sysctl -w net.ipv4.icmp_echo_ignore_all=1

参数所在目录:

[root@centos4 ipv4]# cd /proc/sys/net/ipv4/
[root@centos4 ipv4]# ls
cipso_cache_bucket_size            ipfrag_high_thresh                tcp_fack                tcp_retries1
cipso_cache_enable                 ipfrag_low_thresh                 tcp_fastopen            tcp_retries2
cipso_rbm_optfmt                   ipfrag_max_dist                   tcp_fastopen_key        tcp_rfc1337
cipso_rbm_strictvalid              ipfrag_secret_interval            tcp_fin_timeout         tcp_rmem
conf                               ipfrag_time                       tcp_frto                tcp_sack
icmp_echo_ignore_all               ip_local_port_range               tcp_invalid_ratelimit   tcp_slow_start_after_idle
icmp_echo_ignore_broadcasts        ip_local_reserved_ports           tcp_keepalive_intvl     tcp_stdurg
icmp_errors_use_inbound_ifaddr     ip_nonlocal_bind                  tcp_keepalive_probes    tcp_synack_retries
icmp_ignore_bogus_error_responses  ip_no_pmtu_disc                   tcp_keepalive_time      tcp_syncookies
icmp_msgs_burst                    neigh                             tcp_limit_output_bytes  tcp_syn_retries
icmp_msgs_per_sec                  ping_group_range                  tcp_low_latency         tcp_thin_dupack
icmp_ratelimit                     route                             tcp_max_orphans         tcp_thin_linear_timeouts
icmp_ratemask                      tcp_abort_on_overflow             tcp_max_ssthresh        tcp_timestamps
igmp_max_memberships               tcp_adv_win_scale                 tcp_max_syn_backlog     tcp_tso_win_divisor
igmp_max_msf                       tcp_allowed_congestion_control    tcp_max_tw_buckets      tcp_tw_recycle
igmp_qrv                           tcp_app_win                       tcp_mem                 tcp_tw_reuse
inet_peer_maxttl                   tcp_autocorking                   tcp_min_tso_segs        tcp_window_scaling
inet_peer_minttl                   tcp_available_congestion_control  tcp_moderate_rcvbuf     tcp_wmem
inet_peer_threshold                tcp_base_mss                      tcp_mtu_probing         tcp_workaround_signed_windows
ip_default_ttl                     tcp_challe
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值