iptables loadbalancing question

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
faustf
Level 1
Level 1
Posts: 43
Joined: Thu Apr 27, 2017 7:54 pm

iptables loadbalancing question

Post by faustf »

hi guys i try to do a load balance with 2 wireless lan, this is my scenario:
pc with Linux Mint 18.3 Sylvia 64-bit
Kernel Linux 4.13.0-36-generic x86_64
mate 18

i have first wireless wlp6s0 in 192.168.0.52
and second wireless wlp8s0 in 192.168.1.18

first controll the rule of iptables with this command sudo iptables -L
return this:

Code: Select all

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
classical vanilla configuration
i try to set by hand
sudo iptables -t mangle -A OUTPUT -j CONNMARK --set-mark 1
sudo iptables -t mangle -A OUTPUT -m statistic --mode nth --every 2 --packet 0 -j RETURN
sudo iptables -t nat -A POSTROUTING -m connmark --mark 1 -j SNAT --to 192.168.0.52

after this i control if the rule is accepted in:
sudo iptables -L
but return always vanilla configuration , and rule do not return error , anyone can help me ???
thankz
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Networking”