I’m using Opensuse as a router. Configuration method:
I have installed the clean version of tumbleweed.
Disabling services: firewall, apparmor.
I run the iptables script.
#/bin/bash
iptables -F
iptables -Z
iptables -X
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
INTERNET="enp0s3"
LAN="enp0s8"
LANNETWORK="10.0.0.0/16"
iptables -A INPUT -i lo -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o $INTERNET -j MASQUERADE
iptables -P INPUT DROP
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -s $LANNETWORK -j ACCEPT
iptables -A INPUT -i $INTERNET -p tcp -m multiport --dport 22 -j ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
iptables -A FORWARD -i $INTERNET -o $LAN -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i $LAN -o $INTERNET -j ACCEPT
The network is working properly. When he tries to upload on a Windows computer (no matter what page), after a while he disconnects the network connection for some time.
The above configuration works fine on OS DEBIAN, but I like opensuse and don’t want to opt out. I suspect the problem lies in the kernel configuration? Please help
while browsing etc on the Windows host. Anything unusual reported?
It would be interesting to see if “connectivity issues” are encountered with data transfers between the router and the Windows host. You could do this with iperf (or similar).
Jun 03 12:36:24 hp sudo[18658]: root : TTY=pts/0 ; PWD=/ ; USER=root ; COMMA ND=/usr/bin/journalctl -f
Jun 03 12:36:24 hp sudo[18658]: pam_unix(sudo:session): session opened for user root by USERNAME(uid=0)
Jun 03 12:36:24 hp sudo[18658]: pam_systemd(sudo:session): Cannot create session : Already running in a session
Jun 03 12:37:44 hp kernel: e1000e 0000:00:19.0 enp0s3: Detected Hardware Unit Hang:
TDH <cc>
TDT <ff>
next_to_use <ff>
next_to_clean <cc>
buffer_info[next_to_clean]:
time_stamp <105f66f6f>
next_to_watch <ce>
jiffies <105f67252>
next_to_watch.status <0>
MAC Status <802a3>
PHY Status <792d>
PHY 1000BASE-T Status <3800>
PHY Extended Status <3000>
PCI Status <10>
Jun 03 12:37:46 hp kernel: e1000e 0000:00:19.0 enp0s3: Detected Hardware Unit Hang:
TDH <cc>
TDT <ff>
next_to_use <ff>
next_to_clean <cc>
buffer_info[next_to_clean]:
time_stamp <105f66f6f>
next_to_watch <ce>
jiffies <105f67446>
next_to_watch.status <0>
MAC Status <802a3>
PHY Status <792d>
PHY 1000BASE-T Status <3800>
PHY Extended Status <3000>
PCI Status <10>
Jun 03 12:37:48 hp kernel: e1000e 0000:00:19.0 enp0s3: Detected Hardware Unit Hang:
TDH <cc>
TDT <ff>
next_to_use <ff>
next_to_clean <cc>
buffer_info[next_to_clean]:
time_stamp <105f66f6f>
next_to_watch <ce>
jiffies <105f6763a>
next_to_watch.status <0>
MAC Status <802a3>
PHY Status <792d>
PHY 1000BASE-T Status <3800>
PHY Extended Status <3000>
PCI Status <10>
Jun 03 12:37:49 hp kernel: e1000e 0000:00:19.0 enp0s3: Reset adapter unexpectedly
Jun 03 12:37:52 hp kernel: e1000e: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Jun 03 12:37:52 hp wickedd[30783]: route ipv4 0.0.0.0/0 via PUBLICIP dev enp0s3#4 type unicast table main scope universe protocol boot covered by a ipv4:static lease