星期天博客
  • VPN
  • 服务器
    • CDN
  • 云盘
  • 邮箱
  • AI
  • VPN
  • 服务器
    • CDN
  • 云盘
  • 邮箱
  • AI
  1. 首页
  2. 标签
  3. iptables
socat 端口转发

服务器 socat 端口转发

简介:socat是一种TCP或UDP流量转发工具。支持单端口转发,但不支付端口段转发。要想端口段转发请参考  iptables 端口转发。部署:ubuntu/debian 系统: apt-get update -y && apt-get install socat -y
centos 系统: yum update -y &

0个评论
服务器 2019-11-01
iptables 端口转发

服务器 iptables 端口转发

iptables 一般系统自带,如果没有安装方法如下:ubuntu/debian 系统: apt-get update -y && apt-get install iptables -ycentos 系统: yum update -y && yum install iptables -y前期准备:开启内核ip转发vi /etc/sysctl.conf将下面两项注释去掉,保存。#net.ipv4.ip_forward=1#net.ipv6.conf.all.forw

0个评论
服务器 2019-11-01
Linux 服务器快速屏蔽指定国家的IP段访问

服务器 Linux 服务器快速屏蔽指定国家的IP段访问

ipset是iptables的扩展,它允许你创建匹配整个IP地址集合的规则。可以快速的让我们屏蔽某个IP段。这里分享个屏蔽指定国家访问的方法,有时候还可以有效的帮网站阻挡下攻击。方法首先需要得到国家IP段,下载地址:http://www.ipdeny.com/ipblocks/。这里以我们国家为例。1、安装 ipset#Debian/Ubuntu 系统apt-get -y install ipset#CentOS 系统yum -y install ipset2、创建规则#创建一个名为 cnip

0个评论
服务器 2019-05-29
iptables规则整理

服务器 iptables规则整理

1、查看iptables -nvL –line-number-L 查看当前表的所有规则,默认查看的是filter表,如果要查看NAT表,可以加上-t NAT参数-n 不对ip地址进行反查,加上这个参数显示速度会快很多-v 输出详细信息,包含通过该规则的数据包数量,总字节数及相应的网络接口–line-number 显示规则的序列号,这个参数在删除或修改规则时会用到2、添加添加规则有两个参数:-A和-I。其中-A是添加到规则的末尾;-I可以插入到指定位置,没有指定位置的话默认插入到规则的首部。添加一

0个评论
服务器 2019-04-11
 Theme by Puock