Hi,
I've now worked one week to get my diald to work, but my configuration
still seems to have some bugs. What I wanted to do, is to get diald to
dial out via modem everytime I send a http request that cannot be
resolved from the proxy.
I use to start diald from the commandline; /var/log/messages says diald
setup was succesfully, but when I run ifconfig the tap0 device is not
listed, as well as it doesn't show up in the routing table...
Of course, I configured my kernel with ethertap support and when I try
to start tap0 manually (via ifconfig tap0 ipaddr up), it's showing up in
ifconfig...
Has anyone a suggestion how to fix this?
Cheers,
;) Chris
debug output:
Apr 23 18:02:19 Snoopy diald[1146]: Proxy device established on
interface tap0
Apr 23 18:02:19 Snoopy diald[1146]: start tap0: Establishing routes for
tap0
Apr 23 18:02:19 Snoopy diald[1146]: running '/sbin/route add default
metric 0 netmask 0.0.0.0 dev tap0'
Apr 23 18:02:19 Snoopy diald[1146]: SIGCHLD[1]: pid 1147 system, status
1792
Apr 23 18:02:19 Snoopy diald[1146]: Changed snoop device to tap0
Apr 23 18:02:19 Snoopy diald[1146]: Diald initial setup completed.
Apr 23 18:02:20 Snoopy diald[1146]: --- tick --- state 0 block 0
state_timeout -1
Apr 23 18:02:51 Snoopy last message repeated 31 times
-----------------------------------------------------------------------------------------------------
ifconfig:
eth0 Linkverkapselung:Ethernet HWaddr 00:E0:7D:76:CB:07
inet addr:192.168.0.1 Bcast:192.168.0.255
Maske:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Empfangene Pakete:0 Fehler:0 Weggeworfen:0 �berlauf:0 Rahmen:0
Verschickte Packete:0 Fehler:0 Weggeworfen:0 �berlauf:0
Rahmen:0
Kollisionen:0 Sendewarteschlangenl�nge:100
Unterbrechung:5 Basisadresse:0xef40
lo Linkverkapselung:Locale Schleife
inet addr:127.0.0.1 Maske:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
Empfangene Pakete:61 Fehler:0 Weggeworfen:0 �berlauf:0
Rahmen:0
Verschickte Packete:61 Fehler:0 Weggeworfen:0 �berlauf:0
Rahmen:0
Kollisionen:0 Sendewarteschlangenl�nge:0
--------------------------------------------------------------------------------------------------
netstat:
Kernel IP Routentabelle
Ziel Router Genmask Flags MSS Fenster irtt
Iface
192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 0
eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
--------------------------------------------------------------------------------------------------
diald.conf:
mode ppp
debug 0x007c
connect '/usr/sbin/chat -v -f /etc/ppp/ppp.chat'
device /dev/modem
speed 115200
modem
lock
crtscts
defaultroute
include /usr/lib/diald/standard.filter
dynamic
-----------------------------------------------------------------------------------------------------
diald.defs:
# Define default protocol rules
prule tcp tcp 9:12:13:14:15:16:17:18:19:+0:+1:+2:+3:9:9:9
prule udp udp 9:12:13:14:15:16:17:18:19:+0:+1:+2:+3:9:9:9
prule icmp icmp 9:12:13:14:15:16:17:18:19:9:9:9:9:9:9:9
prule any any 9:12:13:14:15:16:17:18:19:9:9:9:9:9:9:9
# Define the internet packet header fields.
var ip.ihl 0(24)&0xf
var ip.version 0(28)&0xf
var ip.tos 1(24)&0xff
var ip.tot_len 2(16)&0xffff
var ip.id 4(16)&0xffff
var ip.frag_off 6(16)&0x3fff
var ip.ttl 8(24)&0xff
var ip.protocol 9(24)&0xff
var ip.check 10(16)&0xffff
var ip.saddr 12
var ip.daddr 16
# Define the TCP packet header fields.
var tcp.source +0(16)&0xffff
var tcp.dest +2(16)&0xffff
var tcp.seq +4
var tcp.ack_seq +8
var tcp.doff +12(28)&0xf
var tcp.fin +13(24)&0x1
var tcp.syn +13(25)&0x1
var tcp.rst +13(26)&0x1
var tcp.psh +13(27)&0x1
var tcp.ack +13(28)&0x1
var tcp.urg +13(29)&0x1
var tcp.live +127
# Define the UDP packet header fields.
var udp.source +0(16)&0xffff
var udp.dest +2(16)&0xffff
var udp.len +4(16)&0xffff
var udp.check +6(16)&0xffff
# Define the ICMP packet header fields.
var icmp.type +0(24)&0xff
var icmp.code +1(24)&0xff
var icmp.checksum +2(16)&0xffff
var icmp.echo.id +4(16)&0xffff
var icmp.echo.sequence +6(16)&0xffff
var icmp.gateway +4
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]