Monday, April 07, 2008

#! /bin/bash
# eth0 - local network
# ppp0 - internet
# eth1 - home wnetwork

IPTABLES=/sbin/iptables

echo 1 > /proc/sys/net/ipv4/ip_forward

# Clearing
$IPTABLES -P INPUT ACCEPTs
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F

$IPTABLES -t nat -A POSTROUTING -o eth0 -j MASQUERADE
$IPTABLES -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

$IPTABLES -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A FORWARD -i eth1 -o eth0 -j ACCEPT
$IPTABLES -A FORWARD -i ppp0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A FORWARD -i eth1 -o ppp0 -j ACCEPT

Sunday, March 23, 2008

Network card don't work after unplug/replug

ifplugd is a Linux daemon which will automatically configure your ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled. This is useful on laptops with onboard network adapters, since it will only configure the interface when a cable is really connected.

http://0pointer.de/lennart/projects/ifplugd

Friday, July 27, 2007

Now I have become a developer of an open source project that named as "Open Source Flex 2.0 Components". I have fixed a bug and I'm going to make a TreeGrid component more powerful and useful. Looking forward for new releases :)

Sunday, June 24, 2007

DC++ and Linux

DC++ is a popular P2P client. Unfortunately, DC++ client for Linux has many bugs (Russian locale doesn't support for searching and etc.), limits and so not convenient as DC++ for Windows. To run DC++ (windows version) you should install WINE then install DC++ (an install package you can download from DC++ download page).

If you run DC++ through WINE and have found file then try to download it DC++ will failed. For avoiding this behavior you must turn off "Show progress bars for transfers" option in the Settings -> Advanced. Now you can use this client with pleasure.

Good luck!

Saturday, June 02, 2007

Lingvo.Yandex search engine

On the site www.slovari.yandex.ru you can add a search engine for Firefox, IE, Opera. After adding it you can search describing of words via a search box in your favorite browser. But this engine describes through different dictionaries. To translate english / a russian word you should select a option in the right navbar (в словарях ABBYY Lingvo). I think this way is an inconvenient and I have created an opensearch configuratuon for this service. Now I can input an english or a russian word in a search box of Firefox (IE, Opera) and then get a translation of it immediately. If you want add this service you should go to this url http://sinnus.narod.ru/opensearch/opensearch.html and add "Lingvo Yandex" engine in the search box.

Then you can search a translation of english/russian box via a search engine.

p.s. For examine a config file you can download it from this url http://sinnus.narod.ru/opensearch/opensearch.xml if you want to change a translation language.

Good luck!!!