vtun 配置文件
一、客户端
options {
port 5000; # Listen on this port.
ppp /usr/sbin/pppd;
ifconfig /sbin/ifconfig;
route /sbin/route;
firewall /sbin/iptables;
}
server {
passwd Ma&^TU; # Password
keepalive yes; # Keep connection alive
type tun;
proto udp;
up {
ifconfig "%% 10.10.10.88 pointopoint 10.10.10.99 mtu 1450";
};
}
port 5000; # Listen on this port.
ppp /usr/sbin/pppd;
ifconfig /sbin/ifconfig;
route /sbin/route;
firewall /sbin/iptables;
}
server {
passwd Ma&^TU; # Password
keepalive yes; # Keep connection alive
type tun;
proto udp;
up {
ifconfig "%% 10.10.10.88 pointopoint 10.10.10.99 mtu 1450";
};
}
三、服务器
options {
port 5000; # Listen on this port.
ppp /usr/sbin/pppd;
ifconfig /sbin/ifconfig;
route /sbin/route;
firewall /sbin/iptables;
ip /sbin/ip;
}
default {
compress no; # Compression is off by default
speed 0; # By default maximum speed, NO shaping
type tun;
proto udp;
keepalive yes;
}
server {
passwd Ma&^TU; # Password
keepalive yes; # Keep connection alive
type tun; # IP tunnel
proto udp; # UDP protocol
keepalive yes; # Keep connection alive
up {
ifconfig "%% 10.10.10.99 pointopoint 10.10.10.88 mtu 1450";
program /sbin/arp "-sD 10.10.10.88 eth1 pub";
firewall "-I forward -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT";
};
down {
firewall "-D forward -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT";
program "/sbin/arp -d 10.10.10.88 -i eth1";
};
}
port 5000; # Listen on this port.
ppp /usr/sbin/pppd;
ifconfig /sbin/ifconfig;
route /sbin/route;
firewall /sbin/iptables;
ip /sbin/ip;
}
default {
compress no; # Compression is off by default
speed 0; # By default maximum speed, NO shaping
type tun;
proto udp;
keepalive yes;
}
server {
passwd Ma&^TU; # Password
keepalive yes; # Keep connection alive
type tun; # IP tunnel
proto udp; # UDP protocol
keepalive yes; # Keep connection alive
up {
ifconfig "%% 10.10.10.99 pointopoint 10.10.10.88 mtu 1450";
program /sbin/arp "-sD 10.10.10.88 eth1 pub";
firewall "-I forward -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT";
};
down {
firewall "-D forward -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT";
program "/sbin/arp -d 10.10.10.88 -i eth1";
};
}
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步