View Issue Details

IDProjectCategoryView StatusLast Update
0005414Linux server softwareDebianpublic2024-06-30 02:01
ReporterDigitalMy 
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Summary0005414: Set Debian as router
DescriptionOn IBM x3250 M4 server installed Debian 12 OS. Use RAID10 array.
Set up iptables firewall
TagsNo tags attached.

Activities

DigitalMy

2023-07-20 14:47

administrator   ~0009216

Last edited: 2023-07-20 14:49

View 2 revisions

mcedit /etc/sysctl.conf
enable line:
net.ipv4.ip_forward=1
sysctl -p
apt install ethtool
iptables -L -v -n | more

DigitalMy

2023-07-20 16:42

administrator   ~0009217

Last edited: 2023-07-26 10:39

View 3 revisions

Add rules to file
mcedit /etc/iptables.sh

Make file executable

Execute script (after make any changes do this):
/etc/iptables.sh

Check rules after:
sudo iptables -S
sudo iptables -L -v -n | more
iptables -t nat -L
iptables -t nat -L -n -v

DigitalMy

2023-07-20 17:24

administrator   ~0009218

Add DNS server
apt-get install bind9

DigitalMy

2023-08-01 01:17

administrator   ~0010215

Redirect local subnetwork packets to local server:
$IPT -A FORWARD -i $LAN -o $LAN -j ACCEPT
$IPT -t nat -A POSTROUTING --dst 10.16.1.15 -p tcp --dport 80 -s $LAN_IP_RANGE -j MASQUERADE
$IPT -t nat -A PREROUTING -p tcp --dport 80 -d 162.113.119.110 -s $LAN_IP_RANGE -j DNAT --to-destination 10.16.1.15:80

DigitalMy

2024-06-30 01:49

administrator   ~0014282

Last edited: 2024-06-30 02:01

View 3 revisions

Add dashboard Ajenti to Debian 12
sudo apt install build-essential python3-pip python3-dev python3-lxml libffi-dev libssl-dev python3-dbus python3-augeas python3-apt ntpdate python3-setuptools python3-wheel
sudo apt install curl

wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/debian main main debian" >> /etc/apt/sources.list
apt-get update && apt-get install ajenti
service ajenti restart

wget -O- https://raw.github.com/ajenti/ajenti/1.x/scripts/install-debian.sh | sh
curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s -