iptables loadbalancing question

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
Level 1
Level 1
Posts: 4
Joined: Thu Apr 27, 2017 7:54 pm

iptables loadbalancing question

Post by faustf » Wed Mar 07, 2018 6:13 am

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
and second wireless wlp8s0 in

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

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 ???

Post Reply

Return to “Other networking topics”