Modify

Opened 8 years ago

Closed 4 years ago

Last modified 4 years ago

#6643 closed defect (obsolete)

comgt firewall configuration is incorrect

Reported by: mdeneen@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Kamikaze 8.09
Keywords: comgt ppp0 iptables Cc:

Description

https://dev.openwrt.org/browser/tags/8.09.2/package/comgt/files/3g.iface

This script references iptables lists which are no longer relevant in Kamikaze 8.09.2.


include /lib/network
config_load network
scan_interfaces
config_get proto "$INTERFACE" proto
[ "$proto" = "3g" ] && {
	config_get iface "$INTERFACE" ifname
	case "$ACTION" in
		ifup)
			iptables -I LAN_ACCEPT 1 -i "$iface" -j RETURN
			iptables -A FORWARD -o "$iface" -j ACCEPT
			iptables -t nat -A POSTROUTING -o "$iface" -j MASQUERADE 
			set_3g_led 1 1 0
		;;
		ifdown)
			iptables -D LAN_ACCEPT -i "$iface" -j RETURN
			iptables -D FORWARD -o "$iface" -j ACCEPT
			iptables -t nat -D POSTROUTING -o "$iface" -j MASQUERADE 
			set_3g_led 0 0 0
#			/sbin/ifwatch.sh 
		;;
	esac
}

As a result, traffic is not forwarded to the ppp0 interface.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by nbd

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

comment:2 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.