View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005414 | Linux server software | Debian | public | 2023-07-20 14:39 | 2024-06-30 02:01 |
Reporter | DigitalMy | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | assigned | Resolution | open | ||
Summary | 0005414: Set Debian as router | ||||
Description | On IBM x3250 M4 server installed Debian 12 OS. Use RAID10 array. Set up iptables firewall | ||||
Tags | No tags attached. | ||||
|
mcedit /etc/sysctl.conf enable line: net.ipv4.ip_forward=1 sysctl -p apt install ethtool iptables -L -v -n | more |
|
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 |
|
Add DNS server apt-get install bind9 |
|
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 |
|
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 - |