can you send result of:
grep "" /proc/sys/net/ipv4/conf/*/forwarding
before and after reload ?
Will do ASAP as I need to use some textbox for it
Thanks for the link, we start to become a team
can you send result of:
grep "" /proc/sys/net/ipv4/conf/*/forwarding
before and after reload ?
ifreload -a
# cat /proc/sys/net/ipv4/ip_forward
1
# grep "" /proc/sys/net/ipv4/conf/*/forwarding
/proc/sys/net/ipv4/conf/all/forwarding:1
/proc/sys/net/ipv4/conf/bond0/forwarding:1
/proc/sys/net/ipv4/conf/default/forwarding:1
/proc/sys/net/ipv4/conf/eth0/forwarding:0
/proc/sys/net/ipv4/conf/eth1/forwarding:0
/proc/sys/net/ipv4/conf/eth2/forwarding:0
/proc/sys/net/ipv4/conf/lo/forwarding:0
/proc/sys/net/ipv4/conf/tap201i0/forwarding:1
/proc/sys/net/ipv4/conf/tap201i1/forwarding:1
/proc/sys/net/ipv4/conf/tap202i0/forwarding:1
/proc/sys/net/ipv4/conf/tap202i1/forwarding:1
/proc/sys/net/ipv4/conf/tap211i0/forwarding:1
/proc/sys/net/ipv4/conf/tap211i1/forwarding:1
/proc/sys/net/ipv4/conf/tap212i0/forwarding:1
/proc/sys/net/ipv4/conf/tap212i1/forwarding:1
/proc/sys/net/ipv4/conf/tap231i0/forwarding:1
/proc/sys/net/ipv4/conf/tap232i0/forwarding:1
/proc/sys/net/ipv4/conf/tun0/forwarding:1
/proc/sys/net/ipv4/conf/vmbr1001/forwarding:0
/proc/sys/net/ipv4/conf/vmbr101/forwarding:0
/proc/sys/net/ipv4/conf/vmbr11/forwarding:1
Hi,
Sorry for the delay but I needed spare server for this to test at the moment and other upcoming things as well.
I just tried without changing anything in the interfaces file:"
Code:ifreload -a
Code:# cat /proc/sys/net/ipv4/ip_forward 1
Code:# grep "" /proc/sys/net/ipv4/conf/*/forwarding /proc/sys/net/ipv4/conf/all/forwarding:1 /proc/sys/net/ipv4/conf/bond0/forwarding:1 /proc/sys/net/ipv4/conf/default/forwarding:1 /proc/sys/net/ipv4/conf/eth0/forwarding:0 /proc/sys/net/ipv4/conf/eth1/forwarding:0 /proc/sys/net/ipv4/conf/eth2/forwarding:0 /proc/sys/net/ipv4/conf/lo/forwarding:0 /proc/sys/net/ipv4/conf/tap201i0/forwarding:1 /proc/sys/net/ipv4/conf/tap201i1/forwarding:1 /proc/sys/net/ipv4/conf/tap202i0/forwarding:1 /proc/sys/net/ipv4/conf/tap202i1/forwarding:1 /proc/sys/net/ipv4/conf/tap211i0/forwarding:1 /proc/sys/net/ipv4/conf/tap211i1/forwarding:1 /proc/sys/net/ipv4/conf/tap212i0/forwarding:1 /proc/sys/net/ipv4/conf/tap212i1/forwarding:1 /proc/sys/net/ipv4/conf/tap231i0/forwarding:1 /proc/sys/net/ipv4/conf/tap232i0/forwarding:1 /proc/sys/net/ipv4/conf/tun0/forwarding:1 /proc/sys/net/ipv4/conf/vmbr1001/forwarding:0 /proc/sys/net/ipv4/conf/vmbr101/forwarding:0 /proc/sys/net/ipv4/conf/vmbr11/forwarding:1
So it seems that non-taps are failing.
New update, this makes it work again:
Code:echo '1' => /proc/sys/net/ipv4/conf/eth<X>/forwarding
I'm able to reproduce too on ethX interface.
as workaround, can you try to add "ip-forward on" in your eth in /etc/network/interface ?
That works indeed!
I must say I only need to do it on the ethX interface that has an address. I have 2 interfaces in a bond and they can live with :0 as the bridge takes over I think ?
yes. I think the correct behaviour is to not change the value, if ip-forward is not defined. (for now, they assume that it's 0, if not defined)>>I have read in the link you gave me earlier it's a bug that Cumulus wants/needs to fix ?
Thanks for the report !Thanks a lot for all the effort!
As forwarding occur between 2 interfaces with ip address, it make sense.
- for a "standalone" interface, without bond, not in a bridge with static ip -> enable forward on the interface
- for a bond interface, not in a bridge with static ip -> enable forward on the bond
- for a bond, and a standalone interface in a bridge, with a static ip on the bridge -> enable forward on the bridge
yes. I think the correct behaviour is to not change the value, if ip-forward is not defined. (for now, they assume that it's 0, if not defined)
Thanks for the report !
You were very welcome, great!
To be precise; We need the "workaround" or the package will be updated in some time and will float into Proxmox ? I'm not sure who maintains what at the moment but that it's managed well is for sure! (need to read some more about Cumulus)
IPv6 doesn't seem to forward at all, only one bridge is in :1 mode, vmbr11 and none of the interfaces is with ip-forward on on the IPv6 interfaces/aliases.
auto ethx
iface ethx
address 10.0.0.1/24
address 2001:db8:1f89::/48
address 192.168.0.1/16
ip-forward on
ip6-forward on
Proxmox have his own ifupdown2 package, with custom patchs. So generally, I'm looking with ifupdown2 devs if I can have the patch/fix upstream, and if it take too long, I'm already make patch in the proxmox package.
you can also add "ip6-forward on".
Also, with ifupdown2, you don't need to create a :1 interface for ipv6, you can simply create an interface, without inet static or inet6 static.
with multiple ip address (ipv4 or ipv6, mixed)
Code:auto ethx iface ethx address 10.0.0.1/24 address 2001:db8:1f89::/48 address 192.168.0.1/16 ip-forward on ip6-forward on
Hi,
here a build of new deb with patches
http://odisoweb1.odiso.net/ifupdown2_1.2.5-1+pvetest2_all.deb
it should work without need to add "ip-forward" workaround.
(now, ifupdown2 change ipforwarding only if ip-forward is defined (1|0) , and if not defined, we keep sysctl values)
for bond-primary option support, no. (this will take more time)Great, going to try it in a few hours! Is the bond change applied as well (yet) ?
for bond-primary option support, no. (this will take more time)
I have only fixed the ip_forward issue.
OK I'm testing this out and it's strange.
I can stil ping my Proxmox bridge but nothing to the outside world. On my Proxmox box itself I can ping/traceroute the outside world. So I'm unsure what goes wrong here.
what is the result of
grep "" /proc/sys/net/ipv4/conf/*/forwarding
before and after reload ?
IPv4 works, IPv6 doesn't. Sorry for the missing detail!
IPv6 has eth0 on forward, the vmbr11 and the rest is 0.