macsat.com OpenWrt and ASUS WL Forum
October 14, 2008, 13:29:34 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2
1  Oleg's Firmware / Oleg's Firmware / vsftpd+iptables+pasive mod on: May 08, 2008, 11:57:17 AM
HI everybody,
I would like to run vsftpd with pasive mod but ft is runing only vith active mod.

my vsftpd.conf
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
pasv_enable=YES
#pasv_min_port=2000
#pasv_max_port=65534
pasv_address=my external IP
#connect_from_port_20=YES
vsftpd_log_file=/opt/var/log/vsftpd.log
idle_session_timeout=600
data_connection_timeout=120
ftpd_banner=hihi
banner_file=/etc/vsftpd_motd
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/opt/etc/vsftpd.chroot_list
user_config_dir=/opt/etc/vsftpd_user_conf
ls_recurse_enable=YES




this is runing with pasive mod only when my iptables alows everithing in INPUT

and with this is not runing.
#!/bin/sh
iptables -D INPUT -j DROP
iptables -P INPUT DROP
iptables -A INPUT -p tcp --dport auth -j REJECT

#ftp-vsftpd
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
#smtp&pop3
iptables -A INPUT -p tcp --dport 25 -j ACCEPT
iptables -A INPUT -p tcp --dport 110 -j ACCEPT
#www
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
#ssh
iptables -A INPUT -p tcp --dport 22 -j ACCEPT


my iptables -L look like

 iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere           state INVALID
ACCEPT     all  --  anywhere             anywhere           state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere           state NEW
ACCEPT     all  --  anywhere             anywhere           state NEW
ACCEPT     tcp  --  anywhere             krakonosovo        tcp dpt:www
REJECT     tcp  --  anywhere             anywhere           tcp dpt:auth reject-with icmp-port-unreachable
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ftp
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:pop3
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:www
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ssh

Please where is bug?
thx
 
2  Oleg's Firmware / Oleg's Firmware / speed LAN to LAN behind router 500gx on: May 29, 2007, 21:09:04 PM
HI,
I would like to know whether is normal that speed behind the router (LAN TO LAN) is only around 1M/s, is quite slowly, isn't it? Do you have higher speed in LAN?Where could be the problem?
wireless speed is around 1,2MB and wired around 2MB. But I think it is too slow it should be more,isn't it? Speed should be 54Mbit wireless and 100Mbit wired by optimal case?
Thanks a lot
3  Oleg's Firmware / Tutorials / Re: Mail server on: December 21, 2006, 10:39:19 AM
Nono I didn't try OPEnwrt yet. I'm fear that is too hard for me.
IS on OPENwrt possible boot openwrt from usb stick?
4  Oleg's Firmware / Tutorials / Re: Mail server on: December 21, 2006, 09:32:00 AM
Yes I know it. I tried to run on Oleg's .So I have to change to OPENWRT.
thx
5  Oleg's Firmware / Tutorials / Re: Mail server on: December 21, 2006, 09:24:41 AM
Thanks very much it's great  Wink
But I'm using oleg;s firmware and my problem is:

I can't to run XMCrypt to create password:
./XMCrypt haloo
./XMCrypt: can't load library 'libstdc++.so.6'

On my router is installed libstdc++

When I create password in windows so the same mistake is after running server

/opt/etc/init.d/S70xmail start
Starting XMail server: /opt/var/MailRoot/bin/XMail: can't load library 'libstdc++.so.6'

Can I fix it?
6  Oleg's Firmware / Tutorials / Re: Mail server on: December 20, 2006, 09:23:28 AM
Something new about the tutorial?? Grin
7  Oleg's Firmware / Tutorials / Re: Mail server on: December 05, 2006, 12:18:18 PM
Ok thanks it will be great. I'm looking forward to tutorial  Wink
8  Oleg's Firmware / Tutorials / Mail server on: December 05, 2006, 11:12:39 AM
Hi,
is possible to run on asus any mail server?Is any tutorial for oleg's tutorial?I have domain blahblah.net  and I would like to create my email blahblah@blahblah.net. Is it possible?
thanks
9  Oleg's Firmware / Tutorials / Re: web acces on: December 03, 2006, 14:10:31 PM
try to connect with putty to asus and write command:
nvram set http_lanport=80
nvram commit

Now will be asus setup on port :80
10  Oleg's Firmware / Oleg's Firmware / Re: Icq-file transfer not work on: October 19, 2006, 12:28:10 PM
For example i'm using fpt on my pc a ftp automaticly set upnp and everything works without change iptables and routing. But this icq havn't this feature. In icq i can chage range of port. So is possible to prerouting (or something like that) icq transfer in iptables to my pc?Or set upnp?
when in icq i have set range 65500-65504 and is listening on 5190.
I tried to add this to post-firewall but not works Sad

iptables -A INPUT -p tcp --dport 5191 -j ACCEPT

iptables -A INPUT -p tcp --dport 65500:65504 -j ACCEPT

iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 5190 -j DNAT --to 192.168.1.2:5190
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 65500 -j DNAT --to 192.168.1.2:65500
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 65501 -j DNAT --to 192.168.1.2:65501
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 65502 -j DNAT --to 192.168.1.2:65502
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 65503 -j DNAT --to 192.168.1.2:65503
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 65504 -j DNAT --to 192.168.1.2:65504


thx for any idea
11  Oleg's Firmware / Tutorials / Re: thttpd and <form> of xhtml on: October 19, 2006, 12:10:58 PM
mod_auth

auth.debug                  = 0
auth.backend                = "htpasswd"                                                    -----type of auth
auth.backend.htpasswd.userfile = "/etc/htpasswd"                               -----path to htpasswd
#auth.backend.plain.groupfile = "lighttpd.group"
#auth.backend.ldap.hostname = "localhost"
#auth.backend.ldap.base-dn  = "dc=my-domain,dc=com"
#auth.backend.ldap.filter   = "(uid=$)"

auth.require               = ( "/graf/" =>                                                      ----dir which will be locked
                               (
                                 "method"  => "basic",
                                 "realm"   => "graf",                                               ----- is a string to display in the dialog   
                                 "require" => "user=green"                                   ----- user -- must be in this form user=.....
                               )
                             )
after this you have to create file htpasswd --->   htpasswd -c htpasswd(name of file) user(name of user) and get it to dir from auth.backend.htpasswd.userfile

this works perfectly Wink
any manual : http://trac.lighttpd.net/trac/wiki/Docs%3AModAuth
12  Oleg's Firmware / Tutorials / Re: thttpd and <form> of xhtml on: October 18, 2006, 18:52:19 PM
it was my bug now is everything work thanks.
13  Oleg's Firmware / Oleg's Firmware / Re: Icq-file transfer not work on: October 17, 2006, 07:44:41 AM
yes, i'm using client SIM and without asus is working but behind  isn't.
tutorial from petri isn't possible because i have another client Sad
thx
14  Oleg's Firmware / Tutorials / Re: thttpd and <form> of xhtml on: October 16, 2006, 15:49:57 PM
hi,
thanks but now i cant' enter to my page.It looks like bad user or password:
my conf:
 
auth.backend               = "htpasswd"
auth.backend.htpasswd.userfile = "/opt/share"                                               //path to htpasswd???

#auth.backend.plain.groupfile = "lighttpd.group"
#auth.backend.ldap.hostname = "localhost"
#auth.backend.ldap.base-dn  = "dc=my-domain,dc=com"
#auth.backend.ldap.filter   = "(uid=$)"

auth.require               = ( "/graf" =>                                                    //path to my dir which a want to lock
                               (
                                 "method"  => "basic",
                                 "realm"   => "HuhHuh",                                    //dont'know
                                 "require" => "green"                                      //user
                               )
                            )
after i created  htpasswd to /opt/share - my htpasswd from promt looks :
green:anyhash;)

but i can't login to page:(

where is bug please??
thx
15  Oleg's Firmware / Tutorials / Re: thttpd and <form> of xhtml on: October 15, 2006, 09:16:49 AM
thx, i installed lighttpd + php and now works perfectly.
I would like to ask you if is possible to run htpasswd like at thttpd?(and sqlite3?)
thanks for your advice. Wink
Pages: [1] 2
English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.308 seconds with 24 queries.