当前位置:首页 > 系统 > Fedora30设置L2TP VPN ipsec

Fedora30设置L2TP VPN ipsec

系统4年前 (2019-08-05)

Fedora30设置L2TP VPN ipsec

Fedora30默认不支持L2TP VPN,需要安装l2tp和gnome支持组件


更换国内源

sudo su

mv /etc/yum.repos.d/fedora.repo fedora.repo.bak
mv /etc/yum.repos.d/fedora-updates.repo fedora-updates.repo.bak

vi /etc/yum.repos.d/fedora.repo
改为
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=https://mirrors.tuna.tsinghua.edu.cn/fedora/releases/$releasever/Everything/$basearch/os/
metadata_expire=28d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

vi /etc/yum.repos.d/fedora-updates.repo
改为
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl=https://mirrors.tuna.tsinghua.edu.cn/fedora/updates/$releasever/Everything/$basearch/
enabled=1
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False


生成缓存

dnf clean all
dnf makecache


安装L2TP组件

dnf install xl2tpd
dnf install NetworkManager-l2tp
dnf install NetworkManager-l2tp-gnome
service NetworkManager restart


1.活动--设置--网络--VPN点击+图标,选择“第2层隧道协议(L2TP)”

2.输入名称--输入网关(远程VPN服务器地址)--用户名--密码

3.IPsec设置--勾选“Enable IPsec tunnel to L2TP host”--输入预共享密钥

4.Phase1 Algorithms输入3des-sha1-modp1024,Phase2 Algorithms输入3des-sha1

5.勾选Disable PFS

6.PPP设置为默认,IPv4选项自动,IPv6选项Disable


其他设置

添加RPM Fusion源

dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm


添加fzug源

dnf install https://mirrors.tuna.tsinghua.edu.cn/fzug/free/30/x86_64/fzug-release-30-0.1.noarch.rpm


安装deepin桌面环境

sudo dnf install @deepin-desktop
sudo dnf install deepin-movie deepin-music deepin-screen-recorder deepin-voice-recorder
sudo systemctl disable gdm.service && sudo systemctl enable lightdm.service
reboot


本站所有文章均可随意转载,转载时请保留原文链接及作者。

本文链接:https://www.vos.cn/os/342.html

相关文章

VTL6900实验 Oracle备份方案

VTL6900实验 Oracle备份方案

【实验需求】环境中有一台已安装好的Oracle服务器,Oracle数据库监听已打开,且工作在归档模式。服务器中已创建一个数据库实例oltp,oltp的当前数据量约为1G。预计:周一~周六,访问量较大,...

CentOS7安装cacti

CentOS7安装cacti

网上有一种叫cactiez的集成版本,rrd组件一直有问题,版本也太老,于是就想着重新搭建一个环境试试配置环境关闭Selinux vi /etc/selinux/config 将SELI...

CentOS7安装PureFTP和vsFTP使用加密连接

CentOS7安装PureFTP和vsFTP使用加密连接

LNMP环境搭建好后,日后需要管理webroot路径下的文件,采用加密方式的FTP方式比较简单也安全安装PureFTPyum install pure-ftpd配置PureFTPv...

CentOS7 NFS配置

CentOS7 NFS配置

网络文件系统(Network File System)是一种将远程主机上的分区(目录)经网络挂载到本地的一种机制,通过对网络文件系统的支持,用户可以在本地系统上像操作本地分区一样来对远程主机的共享分区...

CentOS7 Postfix配置

CentOS7 Postfix配置

使用Postfix+Dovecot配置简单的邮件服务器安装Bindyum install bind-chroot配置Bind  编辑主配置文件,里面的各种参数用...

RHEL6.5 + Oracle11g + RAC + ASM

RHEL6.5 + Oracle11g + RAC + ASM

实验环境操作系统:RedHat Enterprise Linux 6.5虚拟机:VMware-workstation 14.1.1数据库:Oracle Database11g 11.2.0.4存储:O...