Git Product home page Git Product logo

home_nat_script's Introduction

home_nat_script

home nat script

watch RSSI:

watch -n 1 cat /proc/net/wireless

For Linux NOTE!

Remember to change wlan0/1 in network_auto_script.m

Change and put iptables.up.rules into /etc/network/iptables.up.rules!!!

Run "sudo iptables-apply"

Or add following to /etc/rc.local:

echo '1' > /proc/sys/net/ipv4/ip_forward
iptables -F
iptables -A FORWARD -j ACCEPT
#iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o wlan1 -j SNAT --to-source 192.168.182.8
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o wlan0 -j MASQUERADE
exit 0

Fan control operations are disabled by default for safety reasons.

To enable fan control, the module parameter fan_control=1 must be given to thinkpad-acpi.

For example, in Ubuntu 8.04 (Hardy Heron), add the following to /etc/modprobe.d/options: options thinkpad_acpi fan_control=1

For Debian Squeeze (testing) create /etc/modprobe.d/thinkpad_acpi.conf with: options thinkpad_acpi fan_control=1 and install the package thinkfan

Having done so, reboot and you can use the following commands to control fan speed:

echo level 0 > /proc/acpi/ibm/fan (fan off)

echo level 2 > /proc/acpi/ibm/fan (low speed)

echo level 4 > /proc/acpi/ibm/fan (medium speed)

echo level 7 > /proc/acpi/ibm/fan (maximum speed)

echo level auto > /proc/acpi/ibm/fan (automatic - default)

echo level disengaged > /proc/acpi/ibm/fan (disengaged)

home_nat_script's People

Contributors

jiaoxianjun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.