Reply To: Heinzelmännchen Problem

Home Page Forums Network Management ZeroShell Heinzelmännchen Problem Reply To: Heinzelmännchen Problem

#50220

Pit
Member

Meanwhile i found a working configuration with default gateway + one pppoe line
balanced.

iptables -t mangle -L -vn :

Chain PREROUTING (policy ACCEPT 697 packets, 119K bytes)
pkts bytes target prot opt in out source destination
789 135K CONNMARK all — * * 0.0.0.0/0 0.0.0.0/0 CONNMARK restore
789 135K NetBalancer all — * * 0.0.0.0/0 0.0.0.0/0

Chain INPUT (policy ACCEPT 399 packets, 42348 bytes)
pkts bytes target prot opt in out source destination
489 57946 NetBalancer all — * * 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy ACCEPT 300 packets, 76696 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 507 packets, 125K bytes)
pkts bytes target prot opt in out source destination
507 125K NetBalancer all — * * 0.0.0.0/0 0.0.0.0/0
507 125K OpenVPN all — * * 0.0.0.0/0 0.0.0.0/0

Chain POSTROUTING (policy ACCEPT 807 packets, 201K bytes)
pkts bytes target prot opt in out source destination
115 8517 NB_CT_POST all — * * 0.0.0.0/0 0.0.0.0/0 state NEW
807 201K NB_STAT all — * * 0.0.0.0/0 0.0.0.0/0

Chain NB_CT_POST (1 references)
pkts bytes target prot opt in out source destination
30 2236 MARK all — * * 0.0.0.0/0 0.0.0.0/0 realm 0x66 MARK set 0x66
50 3875 MARK all — * * 0.0.0.0/0 0.0.0.0/0 realm 0x64 MARK set 0x64
115 8517 CONNMARK all — * * 0.0.0.0/0 0.0.0.0/0 CONNMARK save

Chain NB_STAT (1 references)
pkts bytes target prot opt in out source destination
31 2312 all — * * 0.0.0.0/0 0.0.0.0/0 MARK match 0x66
51 3986 all — * * 0.0.0.0/0 0.0.0.0/0 MARK match 0x64

Chain NetBalancer (3 references)
pkts bytes target prot opt in out source destination
0 0 LOG all — ETH00 * 192.168.7.201 62.75.202.23 state NEW,RELATED,ESTABLISHED limit: avg 10/min burst 15 LOG flags 0 level 4 prefix `NetBalancer/001′
0 0 MARK all — ETH00 * 192.168.7.201 62.75.202.23 state NEW,RELATED,ESTABLISHED MARK set 0x64
182 31383 ACCEPT all — * * 0.0.0.0/0 0.0.0.0/0 MARK match !0x0
0 0 LOG tcp — ETH00 * 192.168.7.201 85.25.135.90 state RELATED,ESTABLISHED limit: avg 10/sec burst 15 LOG flags 0 level 4 prefix `NetBalancer/002′
0 0 MARK tcp — ETH00 * 192.168.7.201 85.25.135.90 state RELATED,ESTABLISHED MARK set 0x64
0 0 ACCEPT all — * * 0.0.0.0/0 0.0.0.0/0 MARK match !0x0
0 0 LOG all — ETH00 * 10.0.0.0/24 0.0.0.0/0 state NEW,RELATED,ESTABLISHED limit: avg 10/min burst 15 LOG flags 0 level 4 prefix `NetBalancer/003′
0 0 MARK all — ETH00 * 10.0.0.0/24 0.0.0.0/0 state NEW,RELATED,ESTABLISHED MARK set 0x66
0 0 ACCEPT all — * * 0.0.0.0/0 0.0.0.0/0 MARK match !0x0

Chain OpenVPN (1 references)
pkts bytes target prot opt in out source destination

root@zeroshell root> ip rule list
0: from all lookup local
32764: from all fwmark 0x66 lookup 102
32765: from all fwmark 0x64 lookup 100
32766: from all lookup main
32767: from all lookup default

root@zeroshell root> ip route list table 102
213.191.64.45 dev ppp1 proto kernel scope link src 78.51.19.196
213.191.64.52 dev ppp2 proto kernel scope link src 78.52.122.111
213.191.64.48 dev ppp0 proto kernel scope link src 78.51.125.38
87.234.250.0/29 dev ETH01 proto kernel scope link src 87.234.250.3
192.168.7.0/24 dev ETH00 proto kernel scope link src 192.168.7.75
192.168.250.0/24 dev VPN99 proto kernel scope link src 192.168.250.254
default dev ppp0 scope link
unreachable default metric 99

root@zeroshell root> ip route list table 100
213.191.64.45 dev ppp1 proto kernel scope link src 78.51.19.196
213.191.64.52 dev ppp2 proto kernel scope link src 78.52.122.111
213.191.64.48 dev ppp0 proto kernel scope link src 78.51.125.38
87.234.250.0/29 dev ETH01 proto kernel scope link src 87.234.250.3
192.168.7.0/24 dev ETH00 proto kernel scope link src 192.168.7.75
192.168.250.0/24 dev VPN99 proto kernel scope link src 192.168.250.254
default via 87.234.250.1 dev ETH01
unreachable default metric 99