Apr 252011
 

There seems to be a lot of confusion with this, so I’m going to make this quick any easy. IPtables is a stateful firewall tht is both powerful and efficent. That being said, let’s look at how to restrict a port or service to a specific IP or range of IPs. Entering the following at root will allow SSH connections from the first two locations and drop them from everywhere else:

iptables -I INPUT -p tcp -m tcp -s 192.168.15.16 –dport 22 -j ACCEPT
iptables -I INPUT -p tcp -m tcp -s 192.168.15.254/26 –dport 22 -j ACCEPT
iptables -I INPUT -p tcp -m tcp -s 0.0.0.0/0 –dport 22 -j DROP

Remember, if you want this configuration to survive reboots, you will need to use the command iptables-save. Red hat-based systems will store the configuration in the files /etc/sysconfig/iptables.
If you would like to edit this file directly, use the following:

-A INPUT -p tcp -m tcp -s 192.168.15.16 –dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp -s 192.168.15.254/26 –dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp -s 0.0.0.0/0 –dport 22 -j DROP
Remember, IPtables like most hardware firewalls, uses stateful packet inspection. It will read the rules in order from top to bottom. This is why we put all the allowed networks first and then put in a blanket deny all (0.0.0.0/0). You can enter hosts into IPtables using any of the following formats:
IP address: ex. 192.168.15.16
DNS name: ex. skullbox.net
CIDR: ex. 192.168.15.254/26

Thanks to http://blog.erikrodriguez.net/?title=iptables-open-port-from-location&more=1&c=1&tb=1&pb=1

Apr 182011
 

What is dream
Embrace Dreams, if you got one, protect it.
What is the different
If you are a programmer, you want to have a travel after you release the 3th version, if you are self employed sales, you can sign your dream, example, when you go ahead to sales for $1000, you go to have a rest. That’s dream, let DKApp dream help you to remember the road way.

Apr 182011
 

When I am starting DKApp dojiayu, Agen asked me, what’s that? I said: it’s security.
What is dojiayu? OK, OK, it’s a todo list application.
Why is dojiayu? It’s easy, you can google it.

Apr 172011
 

I the beginning, I am confused for my own road way. I am Java programmer, I’d prefer Python most of the time, I do not like Flash/Flex. Why a Java programmer does not like Flex? I need a toolkit as spider for myself, OK, I wrote one using PHP. Oh, shit, why it’s PHP? Why I made that decision?

I need a new way to define myself. Who am I, what is it, what I can do, what I want to do, another part, what I need? So I start a new DKApp for project domixin.

First of all, I design a basic quota limitation and app market for Domix.in, then I want to design a domain for DKApp tagme. I found it’s not easy, I need something new design for user interface. Define myself? How does it come from? OK, brain. The truth is: I need an online brain mind tool. That’s all, DKApp tagme.

I am working on it. hope you like it.