Modify

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#9152 closed defect (fixed)

/var/state/firewall wrong update for ppp0

Reported by: Dmitry Tunin <hanipouspilot@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

When interface ppp0 goes down and up firewall updates in a wrong way.
{{{firewall.core=firewall_state
firewall.core.lan_ipv4=1
firewall.core.lan_ipv6=1
firewall.core.wan_ipv4=1
firewall.core.wan_ipv6=1
firewall.core.lan_networks=lan
firewall.core.lan_zone=lan
firewall.core.lan_ifname=br-lan
firewall.core.wan_networks=wan vpn
firewall.core.wan_zone=wan
firewall.core.wan_ifname=eth0.2
firewall.core.zones=lan wan
firewall.core.loaded=1
firewall.core.wan_networks=wan vpn wan vpn
firewall.core.wan_networks=wan wan
firewall.core.wan_networks=wan wan wan vpn
firewall.core.wan_networks=wan wan wan
firewall.core.wan_networks=wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan wan wan wan wan wan vpn
firewall.core.vpn_zone=wan
firewall.core.vpn_ifname=ppp0
}}}
It adds wan and vpn each time

Attachments (0)

Change History (12)

comment:1 Changed 7 years ago by Dmitry Tunin <hanipouspilot@…>

firewall.core=firewall_state
firewall.core.lan_ipv4=1
firewall.core.lan_ipv6=1
firewall.core.wan_ipv4=1
firewall.core.wan_ipv6=1
firewall.core.lan_networks=lan
firewall.core.lan_zone=lan
firewall.core.lan_ifname=br-lan
firewall.core.wan_networks=wan vpn
firewall.core.wan_zone=wan
firewall.core.wan_ifname=eth0.2
firewall.core.zones=lan wan
firewall.core.loaded=1
firewall.core.wan_networks=wan vpn wan vpn
firewall.core.wan_networks=wan wan
firewall.core.wan_networks=wan wan wan vpn
firewall.core.wan_networks=wan wan wan
firewall.core.wan_networks=wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan wan wan wan wan vpn
firewall.core.wan_networks=wan wan wan wan wan wan wan wan wan wan
firewall.core.wan_networks=wan wan wan wan wan wan wan wan wan wan wan vpn
firewall.core.vpn_zone=wan
firewall.core.vpn_ifname=ppp0

comment:2 Changed 7 years ago by Dmitry Tunin <hanipouspilot@…>

This is backfire r26370

comment:3 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed with r26382 and r26383.

comment:4 Changed 7 years ago by Dmitry Tunin <hanipouspilot@…>

  • Resolution fixed deleted
  • Status changed from closed to reopened

backfire r26383

firewall.core=firewall_state
firewall.core.lan_ipv4=1
firewall.core.lan_ipv6=1
firewall.core.wan_ipv4=1
firewall.core.wan_ipv6=1
firewall.core.lan_networks=lan
firewall.core.lan_zone=lan
firewall.core.lan_ifname=br-lan
firewall.core.wan_networks=wan vpn
firewall.core.zones=lan wan
firewall.core.loaded=1
firewall.core.wan_networks=wan
firewall.core.wan_networks=wan wan vpn
firewall.core.wan_networks=wan vpn
firewall.core.wan_networks=vpn
firewall.core.wan_networks=vpn wan vpn
firewall.core.wan_networks=vpn vpn
firewall.core.wan_networks=vpn vpn wan vpn
firewall.core.wan_networks=vpn vpn vpn
firewall.core.wan_networks=vpn vpn vpn wan vpn
firewall.core.wan_networks=vpn vpn vpn vpn
firewall.core.wan_networks=vpn vpn vpn vpn wan vpn
firewall.core.wan_networks=vpn vpn wan
firewall.core.wan_networks=vpn vpn wan wan vpn
firewall.core.wan_networks=vpn vpn wan vpn
firewall.core.wan_networks=vpn wan
firewall.core.wan_networks=vpn wan wan vpn
firewall.core.wan_networks=wan wan
firewall.core.wan_networks=wan wan wan vpn
firewall.core.wan_networks=wan vpn
firewall.core.wan_networks=wan
firewall.core.wan_networks=wan wan vpn
firewall.core.wan_networks=wan wan
firewall.core.wan_networks=wan wan wan vpn
firewall.core.wan_networks=wan wan wan
firewall.core.wan_networks=wan wan wan wan vpn
firewall.core.wan_networks=wan wan vpn
firewall.core.wan_zone=wan
firewall.core.wan_ifname=eth0.2
firewall.core.wan_networks=wan wan
firewall.core.wan_networks=wan wan wan vpn
firewall.core.vpn_zone=wan
firewall.core.vpn_ifname=ppp0

I made ifup - ifdown wan
and ppp0

comment:5 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from reopened to closed

Should be completely solved with r26740 and r26741.

comment:6 Changed 7 years ago by Dmitry Tunin <hanipouspilot@…>

  • Resolution fixed deleted
  • Status changed from closed to reopened

Almost fixed.

firewall.core.wan_networks=wan wan vpn

It adds wan interface twice.

firewall.core=firewall_state
firewall.core.lan_ipv4=1
firewall.core.lan_ipv6=1
firewall.core.wan_ipv4=1
firewall.core.wan_ipv6=1
firewall.core.lan_networks=lan
firewall.core.lan_zone=lan
firewall.core.lan_ifname=br-lan
firewall.core.wan_zone=wan
firewall.core.wan_ifname=eth0.2
firewall.core.zones=lan wan
firewall.core.loaded=1
firewall.core.wan_networks=wan wan vpn
firewall.core.vpn_zone=wan
firewall.core.vpn_ifname=ppp0

comment:7 Changed 7 years ago by Dmitry Tunin <hanipouspilot@…>

And same problem is in /var/state/network

It adds lines each time interface goes up

network.vpn.ipaddr=95.26.196.23
network.vpn.gateway=85.21.0.239
network.vpn.up=1
network.vpn.connect_time=33
network.vpn.ipaddr=95.28.107.58
network.vpn.connect_time=83

comment:8 Changed 7 years ago by Dmitry Tunin <hanipouspilot@…>

At night there were reconnects on vpn. See what happened with stat

firewall.core.wan_networks=wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan vpn

comment:9 Changed 7 years ago by Pilot6 <hanipouspilot@…>

This is fixed in trunk by removing 'firewall.core.wan_neworks', but still there in Backfire.

comment:10 Changed 7 years ago by jow

I want to let the trunk changes settle a bit before I merge them to backfire. #9746 shows why :) Don't worry, I'll backport it to backfire before final.

comment:11 Changed 6 years ago by nbd

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:12 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.