View Issue Details

IDProjectCategoryView StatusLast Update
0004377Linux server softwareCentOSpublic2022-11-23 11:51
ReporterDigitalMy 
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Summary0004377: Use CentOS 8 as router
Descriptionyum -y install epel-release
TagsNo tags attached.

Relationships

related to 0000191 progressDigitalMy Windows and other desktop OS Protect personal data on windows 10 station: disable services and block connections with firewall 

Activities

DigitalMy

2021-10-30 16:09

administrator   ~0007096

Last edited: 2021-10-31 12:44

View 2 revisions

yum -y install epel-release
yum install p7zip
yum -y install mc
yum -y install iptables-services
yum -y install iftop
yum -y install htop

DigitalMy

2021-10-30 16:21

administrator   ~0007097

Last edited: 2021-10-31 01:02

View 3 revisions

sudo yum config-manager --add-repo https://repo.fortinet.com/repo/7.0/centos/8/os/x86_64/fortinet.repo
sudo yum install forticlient

cd /opt/forticlient
sudo ./start-fortitray-launcher.sh

DigitalMy

2021-10-31 01:33

administrator   ~0007098

Last edited: 2022-11-23 11:51

View 11 revisions

route -n
echo 1 > /proc/sys/net/ipv4/ip_forward

mc /etc/sysctl.conf
net.ipv4.ip_forward = 1
sysctl -w net.ipv4.ip_forward=1

systemctl start firewalld
firewall-cmd –permanent –direct –passthrough ipv4 -t nat -I POSTROUTING -o vpn -j MASQUERADE -s 10.1.1.0/24
firewall-cmd –permanent –direct –passthrough ipv4 -t nat -I POSTROUTING -o vpn -j MASQUERADE -s 10.1.0.0/24

iptables -t nat -A POSTROUTING -o vpn -j MASQUERADE -s 10.1.1.0/24
iptables -t nat -A POSTROUTING -o vpn -j MASQUERADE -s 10.1.0.0/24
iptables -A FORWARD -i vpn -o enp0s3 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i enp0s3 -o vpn -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i enp0s3 -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A OUTPUT -o enp0s3 -j ACCEPT
iptables -A OUTPUT -o vpn -j ACCEPT

iptables -L -v -n
systemctl restart firewalld

systemctl start iptables.service
systemctl enable iptables.service

mcedit /etc/iptables.sh
> put there rules from above

DigitalMy

2021-10-31 11:44

administrator   ~0007100

Last edited: 2021-10-31 12:33

View 3 revisions

try:
mcedit /etc/sysconfig/selinux
SELINUX=disabled


iptables -D INPUT -j REJECT s 0.0.0.0/0

iptables -S
iptables -L -v -n
There were two blockers, remove them:
iptables -D INPUT 5
iptables -D FORWARD 1
iftop -i vpn -P