vineri, 23 septembrie 2011

VPN for iPhone with DDWRT

for all of you that wanted to have a secure connection for your iPhone i have good news; i'm sure i'm not the first ..but i made it

requirments:

a)a nice router which firmware can be changed to ddwrt (for tutorial it vary from router to router but you will find plenty of tutorials); despite the fact that configuring pptp vpn server it's pretty easy:
  1. go to services -> vpn -> pptp server - enable
  2. enter one local ip address
  3. i use google dns servers
  4. define the range of ip's that should be allocated
  5. define users, one per line ..pay close attention to spaces here - ex: john * pass *
IMPORTANT: despite on security tab-> vpn passthru pptp is enabled i didn't managed to make it work until i went to administration tab -> commands -> and added 2 lines to firewall:

iptables -I INPUT -p udp --dport 1723 -j ACCEPT
iptables -I INPUT -p udp --dport 47 -j ACCEPT

...the credit for these commands, as i am no linux expert, goes to my master friend
..and also big thanks for the guys who developed DD-WRT; i just love it
b)one smartphone with pptp vpn support


since i am very tired ..i will end here ..but if u need more support don't hesitate to leave a comment
cheers,

sâmbătă, 3 septembrie 2011

Filezilla Server MLSD issue

Like many other today i had a major issue NAT-ing port 21 for a FTP server behind a Windows 2003 Server Small Bussiness; i've read all kinds of suggestions and results on Google without finding solution.

The main topic on this issue on google seems to be on RFC guidlelines and implementation on MLSD ftp command over LIST.

After spending of a few hours with different server/client settings i found solution which is quite obvious, i think, but ....

FTP connection uses port 21 for DATA CONTROL and other negociated port (u cand specify server side a port range) for DATA TRANSFER; so i've added on FTP server a port range like 30000-30001 for data transfer and the NAT these 2 ports to the server machine.

what can i say ......EVRIKA!

ps: really hope this will help some of u ...