I use OpenWrt as a bluetooth AP server for a Treo650 (with the Treo
connecting *to* the OpenWrt router for access to the internet, to save
GPRS charges when at home).  This is the opposite of how most people use
ppp, bluetooth and openwrt (where they use ppp to dial out to the
internet through the bluetooth phone ...).

So I have a ppp0 interface, which only exists when the bluetooth
connection is up (which is done on demand from the phone).

So in /etc/config/network, I have:

        config 'interface' 'ppp'
                option 'ifname' 'ppp0'

but don't know what 'proto' I should set there, since 'ppp seems to mean
a dial-out ppp connection, rather than a dial-in ppp server.

Also, when the ppp connection comes up, /var/state/network does not get
an 'up' entry for the ppp interface - how can I get that to record the
state of the ppp interface?

I have the following uci firewall rules:

        config zone
                option name     ppp
                option input    ACCEPT
                option output   ACCEPT
                option forward  DROP

        config forwarding
                option src      ppp
                option dest     wan

How do I get my ppp firewall zone to be added to iptables when the
bluetooth connection comes up, and removed when the connection goes
down, or alternatively, how can I get them to be inserted once on boot
even though the ppp0 interface doesn't exist on boot?

-- Rod


_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to