if you pipe the output to 'sort -r' it will reverse the order of the line 
numbers and remove them correctly.
I have also had to add and export PPP_IFACE line /etc/ppp/ip-down.d/0clampmss 
as it was just removing the first line it found that contained clamp.
My resulting edited file looks like:

#!/bin/sh
# Disable MSS clamping (autogenerated by pppoeconf)
export PPP_IFACE
iptables -t mangle -L -n -v --line-numbers | grep "TCPMSS.*$PPP_IFACE.*clamp" | 
cut -f1 -d " " | sort -r | xargs -n1 -r iptables -t mangle -D FORWARD

I do not know how to get these changes into pppoeconf though.

-- 
pppoeconf's generated /etc/ppp/ip-down.d/0clampmss can remove the wrong 
iptables rules
https://bugs.launchpad.net/bugs/116714
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to