
Linux—06—组建Linux局域网
ztguang
出淤泥而不染,濯清涟而不妖,中通外直,不蔓不枝,香远益清,亭亭净植,可远观而不可亵玩焉。
展开
-
IP地址、网关、DNS
1. ifconfig & serviceifconfig 显示网络接口ifconfig eth0 down 禁用网络接口ifconfig eth0 up 启用网络接口内存法ifconfig eth0 1.2.3.4 netmask 255.0.0.0 up 设置网络接口文原创 2016-03-30 10:38:10 · 391 阅读 · 0 评论 -
Linux 使用 ip route , ip rule , iptables 配置策略路由
Linux 使用 ip route , ip rule , iptables 配置策略路由转载 2016-07-18 12:01:04 · 583 阅读 · 0 评论 -
ip rule 命令
ip rule 命令转载 2016-07-18 12:22:04 · 2329 阅读 · 0 评论 -
Linux bridge
Linux bridge转载 2016-08-30 22:49:22 · 1384 阅读 · 0 评论 -
How to speed my too-slow ssh login?
How to speed my too-slow ssh login?转载 2016-08-30 23:21:41 · 747 阅读 · 0 评论 -
(OK) ping6 ipv6-address
(OK) ping6 ipv6-address原创 2017-04-30 23:17:51 · 1757 阅读 · 0 评论 -
Is it possible to implement IPv6 on a virtual interface (eth0:1 interface) in Linux?
Is it possible to implement IPv6 on a virtual interface (eth0:1 interface) in Linux?转载 2017-06-03 14:50:21 · 471 阅读 · 0 评论 -
tunctl添加虚拟网卡TUN/TAP与brctl添加网桥
tunctl添加虚拟网卡TUN/TAP与brctl添加网桥转载 2017-06-05 08:19:48 · 4219 阅读 · 0 评论 -
route - flags
route - flags原创 2017-06-07 15:38:52 · 2811 阅读 · 0 评论 -
Enable/Disable Multicast on Interface of a Linux Machine
Enable/Disable Multicast on Interface of a Linux Machine转载 2017-07-13 17:04:55 · 691 阅读 · 0 评论 -
RHEL7 - firewalld
RHEL7 - firewalld转载 2017-07-23 08:09:47 · 1595 阅读 · 0 评论 -
Firewalld Rich and Direct Rules: Setting up RHEL 7 Server as a Router
Firewalld Rich and Direct Rules: Setting up RHEL 7 Server as a Router转载 2017-12-24 17:01:14 · 641 阅读 · 0 评论 -
RHEL7: How to get started with Firewalld.
RHEL7: How to get started with Firewalld.转载 2017-12-24 17:13:09 · 488 阅读 · 0 评论 -
get network interface index - ip link show
cat /sys/class/net/eth0/ifindexip link show原创 2018-01-17 20:28:55 · 814 阅读 · 0 评论 -
How To Use Ip Command In Linux with Examples
How To Use Ip Command In Linux with Examples转载 2016-07-17 19:57:12 · 750 阅读 · 0 评论 -
NIC - eno - enp - eth - Why are eno1 and eno2 in this order?
NIC - eno - enp - eth - Why are eno1 and eno2 in this order?转载 2016-07-13 17:32:26 · 1340 阅读 · 0 评论 -
iperf - perform network throughput tests
NAME iperf - perform network throughput testsSYNOPSIS iperf -s [ options ] iperf -c server [ options ] iperf -u -s [ options ] iperf -u -c server [ op原创 2016-05-16 10:15:55 · 542 阅读 · 0 评论 -
samba 设置 网络共享
1. # gedit /etc/samba/smb.conf将smb.conf 文件中的security = user改为security = share在 smb.conf 文件的最后部分添加如下内容:[share] comment = tmp share path = /share writeable = yes原创 2016-03-30 10:01:59 · 983 阅读 · 0 评论 -
samba 服务器的设置
samba.set1. # useradd aaa # passwd aaa # smbpasswd -a aaa # vim /etc/samba/smbusers 添加 aaa = a ,smbusers 文件内容如下:# Unix_name = SMB_name1 SMB_name2 ...root = adminis原创 2016-03-30 09:58:12 · 715 阅读 · 0 评论 -
squid.conf.txt
squid.conf.txthttp_port 3128 hierarchy_stoplist cgi-bin ? acl QUERY urlpath_regex cgi-bin \? cache deny QUERY acl apache rep_header Server ^Apache broken_vary_encoding allow apach原创 2016-03-30 09:54:23 · 424 阅读 · 0 评论 -
snat.txt
snat.txt#!/bin/sh INET_IF="ppp0" LAN_IF="eth1" LAN_IP_RANGE="192.168.0.0/24" IPT="/sbin/iptables" MODPROBE="/sbin/modprobe" echo "1" > /proc/sys/net/ipv4/ip_forward /sbi原创 2016-03-30 09:54:21 · 363 阅读 · 0 评论 -
SAMBA rhel5中不关闭SeLinux配置SAMBA的方法
SAMBA rhel5中不关闭SeLinux配置SAMBA的方法http://blog.sina.com.cn/s/blog_517e2e1b0100a8mn.html### SAMBA rhel5中不关闭SeLinux配置SAMBA的方法(转) 将smb.conf中如下这两行启用(去掉行首的;号就可以了) setsebool -P samba_domain原创 2016-03-30 09:54:11 · 1644 阅读 · 0 评论 -
samba.set
samba.set第1步: # chcon -R -t public_content_rw_t /home/ztg/第2步: # chcon -R -t samba_share_t /var/log/samba/第3步: # iptables -F第4步: # rpm -Uvh Desktop/policycoreutils-gui-1.33.12-12.el5原创 2016-03-30 09:54:01 · 271 阅读 · 0 评论 -
linux网络及防火墙配置命令
http://blog.chinaunix.net/uid-22840716-id-3134121.html /etc/sysconfig/network 包括主机基本网络信息,用于系统启动/etc/sysconfig/network-script/ 此目录下是系统启动最初始化网络的信息/etc/sysconfig/network-script/ifcfg-et原创 2016-03-30 10:35:48 · 541 阅读 · 0 评论 -
tcpdump
tcpdump port 80 -n 管理员在2009年8月13日编辑了该文章文章。 --> --> window._bd_share_config={"common":{"bdSnsKey":{},"b原创 2016-03-30 10:01:41 · 385 阅读 · 0 评论 -
nmap
nmap www.chinaunix.net 管理员在2009年8月13日编辑了该文章文章。 --> --> window._bd_share_config={"common":{"bdSnsKey":{原创 2016-03-30 10:01:29 · 323 阅读 · 0 评论 -
dhcpd.conf.txt
dhcpd.conf.txtddns-update-style interim; ignore client-updates; subnet 192.168.0.0 netmask 255.255.255.0 { # --- default gateway option routers 192.168.0.1; option s原创 2016-03-30 09:53:04 · 481 阅读 · 0 评论 -
kali 2.0 — make — install lenovo netcard
root@kali:~/桌面# cd rtlwifi_new/root@kali:~/桌面/rtlwifi_new# lsbase.c cam.c core.c debug.h firmware pci.h rc.c regd.c rtl8192c rtl8192de rtl8723ae stats.c usb.hbase.h原创 2016-02-01 00:00:00 · 1439 阅读 · 0 评论 -
nload - displays the current network usage
nload(1) Network monitoring tools nload(1)NAME nload - displays the current network usageSYNOPSIS原创 2016-05-03 07:52:13 · 538 阅读 · 0 评论 -
docker动态映射运行的container端口
docker动态映射运行的container端口2016-01-26docker自带了EXPOSE命令,可以通过编写dockerfile加-p参数方便的映射container内部端口,但是对于已经运行的container,如果你想对外开放一个新的端口,只能编辑dockerfile然后重新build,有点不太方便。其实docker本身使用了iptables来做端口映射的,所以我们可以转载 2016-05-14 08:21:08 · 10225 阅读 · 1 评论 -
Linux操作系统-第2版-RHEL8-CentOS8——6.6.1 firewalld简介
新版:Linux操作系统(第二版)(RHEL 8/CentOS 8) 6.6.1 firewalld简介RHEL 8中有几种防火墙共存:iptables、ip6tables、ebtables和nftables。它们其实并不具备防火墙功能,它们的作用都是在用户空间中管理和维护规则,不过它们的规则结构和使用方法不一样,真正利用规则进行数据包过滤是由内核中的netfilter子系统负...原创 2018-12-28 11:30:54 · 2468 阅读 · 0 评论