Installing bouncer on DD-WRT 22R2

Discussion in 'DD-WRT Firmware' started by Mr_X, Aug 20, 2005.

  1. Mr_X

    Mr_X Network Guru Member

    Hello,
    I installed a bouncer on my WRT54G thanks to this guide: http://www.linksysinfo.org/modules.php?name=Forums&file=viewtopic&t=4978
    but I got some problems. (btw there's a little error: "/jffs/usr/bin # wget http://www.linksysinfo.org/files/simon/miaurc -O/jffs/usr/bin/miaurc" should be replaced by "/jffs/usr/bin # wget http://www.linksysinfo.org/files/simon/miaurc.cfg -O/jffs/usr/bin/miaurc")
    I also installed an ident server (that was missing): oident

    When miau is running, it connects successfully on servers (I see it on IRC) but I can't connect to it (connecting with the laptop). Nothing can reach these programs (even ident server can be reached) and I don't know why. Everything seems correct. :/
    Also when miau is running, connecting to ssh is very slow, it takes about 15-20s. Same when trying to connect to bouncer or ident server but these connections fails.
    When I say it can't connect or connection fails, It connects, but programs don't send anything (I got disconnected after some time because of timeout).

    Network topology:
    [​IMG]
    NB: Link between switch and WRT54G is done via one of the 4 ports, not WAN port and DHCP is disabled everywhere. I'm using static IP as you see

    Here's some information about my router and it's internal configuration:


    Code:
    /jffs/etc/config # netstat -n
    Active Internet connections (w/o servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    tcp        0      0 192.168.1.254:22        192.168.1.50:3397       ESTABLISHED
    tcp        0      0 192.168.1.254:52675     216.32.207.207:6667     ESTABLISHED
    tcp       14      0 192.168.1.254:113       216.32.207.207:59976    ESTABLISHED
    udp        0      0 192.168.1.254:2059      195.238.1.21:53         ESTABLISHED
    Active UNIX domain sockets (w/o servers)
    Proto RefCnt Flags       Type       State         I-Node Path
    /jffs/etc/config # netstat -ln
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    tcp        0      0 0.0.0.0:31337           0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:113             0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
    udp        0      0 0.0.0.0:2048            0.0.0.0:*
    udp        0      0 0.0.0.0:53              0.0.0.0:*
    udp        0      0 0.0.0.0:69              0.0.0.0:*
    raw        0      0 0.0.0.0:255             0.0.0.0:*               0
    Active UNIX domain sockets (only servers)
    Proto RefCnt Flags       Type       State         I-Node Path
    /jffs/etc/config # cat progs.startup
    #!/bin/sh
    iptables -I INPUT -p tcp --dport 113 -j ACCEPT
    iptables -I INPUT -s 192.168.1.0/24 -p tcp --dport 31337 -j ACCEPT
    route add default gw 192.168.1.1
    /jffs/usr/bin/miau -d /jffs/usr/bin
    /jffs/usr/bin/oidentd -r MyNick
    /jffs/etc/config # ps
      PID  Uid     VmSize Stat Command
        1 root        712 S   init noinitrd
        2 root            SW  [keventd]
        3 root            SWN [ksoftirqd_CPU0]
        4 root            SW  [kswapd]
        5 root            SW  [bdflush]
        6 root            SW  [kupdated]
       10 root            SW  [mtdblockd]
       47 root            SWN [jffs2_gcd_mtd4]
       67 root        316 S   resetbutton
       94 root        300 S   tftpd -s /tmp -c -l
       97 root        436 S   httpd -d /www
      109 root        288 S   /sbin/wland
      158 root        356 S   dropbear -r /tmp/root/.ssh/ssh_host_rsa_key -d /tmp/root/.ssh/ssh_host_dss_key -p 22
      170 root        312 S   dnsmasq --conf-file /tmp/dnsmasq.conf
      236 root        352 S   process_monitor
      239 root        276 S   /usr/sbin/cron
      387 root        268 S   /jffs/usr/bin/oidentd -r MyNick
      777 root        676 S   dropbear -r /tmp/root/.ssh/ssh_host_rsa_key -d /tmp/root/.ssh/ssh_host_dss_key -p 22
      786 root        528 S   -sh
      881 root        384 S   /jffs/usr/bin/miau -d /jffs/usr/bin
      919 root        308 R   ps
    /jffs/etc/config # iptables -L INPUT -n
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    ACCEPT     tcp  --  192.168.1.0/24       0.0.0.0/0           tcp dpt:31337
    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:113
    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
    DROP       udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:520
    DROP       udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:520
    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:520
    logdrop    icmp --  0.0.0.0/0            0.0.0.0/0
    logdrop    2    --  0.0.0.0/0            0.0.0.0/0
    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:113
    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state NEW
    logaccept  all  --  0.0.0.0/0            0.0.0.0/0           state NEW
    logdrop    all  --  0.0.0.0/0            0.0.0.0/0
    Can someone tell me if I've done something wrong? Or is a firmware problem?

    Edit: After rebooting it's working fine but if i make a change and then restart miau, it won't work.
     
  2. someone_01

    someone_01 Network Guru Member

    A question. please. Where can I get oidentd ipkg running for dd-wrt v23 (jffs)?
     
  3. Mr_X

    Mr_X Network Guru Member

    It should be the same as on 22R2:
    Just open port 113 on iptables (tcp): iptables -I INPUT -p tcp --dport 113 -j ACCEPT
    I'm the only user on my network to use irc then I simply started oidentd like this: ./oidentd -r IRCIdent
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice