OpenWrt Forum Archive

Topic: identd

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hello you.  =)

I would like to allow any computer attached to my wrt54g to send identd when it is requested from outside the lan  (irc/ftp)

this is what my /etc/firewall.user looks like
                                                             http://pastebin.com/434018
                                                                                                      but its not working.

please help me =)



toke.

can i delete /rom/etc/firewall.user ?

the iptables nfo i want to use is in /etc/firewall.user

You can't delete /rom/etc/firewall.user because it is in the flash and mounted read only by the system.

Your ident rule seems to be right but I also think it is first being prerouted and then accepted according to your rule 21:60000

doh
thx for the info smile

i saw someone mention this  sh firewall.user     with a google advance search of openwrt.org

when i try it i get this..

root@OpenWrt:/etc# sh firewall.user
.: 2: Can't open /etc/functions.sh

they are both in /etc/ & are executable

To test your firewall config you might as well be running the whole thing.  Try this:

sh /etc/init.d/S45firewall

-Duffin

it waits a half second longer than firewall.user but still gives the same

root@OpenWrt:/etc/init.d# sh S45firewall
.: 2: Can't open /etc/functions.sh

same functions.sh thats in /rom/etc/

here is what is running
 

root@OpenWrt:/etc/init.d# ps ux
  PID  Uid     VmSize Stat Command
    1 root        392 S   init
    2 root            SW  [keventd]
    3 root            RWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    7 root            SW  [mtdblockd]
   24 root            SWN [jffs2_gcd_mtd4]
   41 root        388 S   syslogd -C 16
   42 root        348 S   klogd
   47 root        392 S   init
  374 root        408 S   udhcpc -i vlan1 -b -p /var/run/vlan1.pid -R
  410 nobody      436 S   dnsmasq -l /tmp/dhcp.leases -K -F 192.168.1.100,192.1
  416 root        420 S   /usr/sbin/dropbear
  419 root        388 S   httpd -p 80 -h /www -r WRT54G Router
  423 root        304 S   telnetd -l /bin/login
  447 root        640 S   /usr/sbin/dropbear
  448 root        468 S   -ash
  453 root        324 S   vsftpd
  518 root        640 S   /usr/sbin/dropbear
  519 root        468 S   -ash
  575 root        640 S   /usr/sbin/dropbear
  576 root        468 S   -ash
  637 root        640 R   /usr/sbin/dropbear
  638 root        472 S   -ash
  697 root        476 S   vsftpd
  698 root        384 R   ps ux

be sure you did not removed the symlink to /etc/functions.sh :

test -e || ln -s /rom/etc/functions.sh /etc/function.sh

root@OpenWrt:~# test -e
root@OpenWrt:~# ln -s /rom/etc/functions.sh /etc/function.sh
ln: /etc/function.sh: File exists
root@OpenWrt:~# ln -s /rom/etc/functions.sh /etc/functions.sh
ln: /etc/functions.sh: File exists

-=(

The discussion might have continued from here.