View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005414 | Linux server software | Debian | public | 2023-07-20 14:39 | 2023-08-01 01:17 |
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 |