Apr 10
Kłopoty z VPN pod Vistą
Przez jakiś czas nie działał mi totalnie VPN pod Vistą. W końcu na vistax64.com znalazłem rozwiązanie:
w cmd:
Usunięcie mostków PPTP i L2TP:
netcfg -u ms_l2tp
netcfg -u ms_pptp
Dodanie na nowo:
netcfg -l %windir%\inf\netrast.inf -c p -i ms_pptp
netcfg -l %windir%\inf\netrast.inf -c p -i ms_l2tp
Działa ;)
No commentsMar 5
iptables: proxy LAN WAN
Znaleziony w sieci pod adresem http://www.aboutdebian.com/proxy.htm, genialnie ułatwia szybkie ustawienie maskarady z sieci LAN do WAN:
#!/bin/sh
# IPTABLES PROXY script for the Linux 2.4 kernel.
# This script is a derivitive of the script presented in
# the IP Masquerade HOWTO page at:
# www.tldp.org/HOWTO/IP-Masquerade-HOWTO/firewall-examples.html
# It was simplified to coincide with the configuration of
# the sample system presented in the Guides section of
# www.aboutdebian.com
#
# This script is presented as an example for testing ONLY
# and should not be used on a production proxy server.
#
# PLEASE SET THE USER VARIABLES
# IN SECTIONS A AND B OR C
echo -e “nnSETTING UP IPTABLES PROXY…”
# === SECTION A
# ———– FOR EVERYONE
# SET THE INTERFACE DESIGNATION FOR THE NIC CONNECTED TO YOUR INTERNAL NETWORK
# The default value below is for “eth0″. This value
# could also be “eth1″ if you have TWO NICs in your system.
# You can use the ifconfig command to list the interfaces
# on your system. The internal interface will likely have
# have an address that is in one of the private IP address
# ranges.
# Note that this is an interface DESIGNATION – not
# the IP address of the interface.
# Enter the internal interface’s designation for the
# INTIF variable:
INTIF=”eth0″
# SET THE INTERFACE DESIGNATION FOR YOUR “EXTERNAL” (INTERNET) CONNECTION
# The default value below is “ppp0″ which is appropriate
# for a MODEM connection.
# If you have two NICs in your system change this value
# to “eth0″ or “eth1″ (whichever is opposite of the value
# set for INTIF above). This would be the NIC connected
# to your cable or DSL modem (WITHOUT a cable/DSL router).
# Note that this is an interface DESIGNATION – not
# the IP address of the interface.
# Enter the external interface’s designation for the
# EXTIF variable:
EXTIF=”ppp0″
# ! ! ! ! ! Use ONLY Section B *OR* Section C depending on
# ! ! ! ! the type of Internet connection you have.
# === SECTION B
# ———– FOR THOSE WITH STATIC PUBLIC IP ADDRESSES
# SET YOUR EXTERNAL IP ADDRESS
# If you specified a NIC (i.e. “eth0″ or “eth1″ for
# the external interface (EXTIF) variable above,
# AND if that external NIC is configured with a
# static, public IP address (assigned by your ISP),
# UNCOMMENT the following EXTIP line and enter the
# IP address for the EXTIP variable:
#EXTIP=”your.static.IP.address”
# === SECTION C
# ———- DIAL-UP MODEM, AND RESIDENTIAL CABLE-MODEM/DSL (Dynamic IP) USERS
# SET YOUR EXTERNAL INTERFACE FOR DYNAMIC IP ADDRESSING
# If you get your IP address dynamically from SLIP, PPP,
# BOOTP, or DHCP, UNCOMMENT the command below.
# (No values have to be entered.)
# Note that if you are uncommenting these lines then
# the EXTIP line in Section B must be commented out.
#EXTIP=”`/sbin/ifconfig ppp0 | grep ‘inet addr’ | awk ‘{print $2}’ | sed -e ’s/.*://’`”
# ——– No more variable setting beyond this point ——–
echo “Loading required stateful/NAT kernel modules…”
/sbin/depmod -a
/sbin/modprobe ip_tables
/sbin/modprobe ip_conntrack
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ip_conntrack_irc
/sbin/modprobe iptable_nat
/sbin/modprobe ip_nat_ftp
/sbin/modprobe ip_nat_irc
echo ” Enabling IP forwarding…”
echo “1″ > /proc/sys/net/ipv4/ip_forward
echo “1″ > /proc/sys/net/ipv4/ip_dynaddr
echo ” External interface: $EXTIF”
echo ” External interface IP address is: $EXTIP”
echo ” Loading proxy server rules…”
# Clearing any existing rules and setting default policy
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F
# FWD: Allow all connections OUT and only existing and related ones IN
iptables -A FORWARD -i $EXTIF -o $INTIF -m state –state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
# Enabling SNAT (MASQUERADE) functionality on $EXTIF
iptables -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
echo -e ” Proxy server rule loading complete”
No commentsFeb 26
Eduroam w PJWSTK
Dla tych którym nie chce dziaÅ‚ać eduroam: Należy pobrać certyfikat PJWSTK CA (http://bss.pjwstk.edu.pl/download/certnew.cer) i dodać go do Trusted Root Certificate dla Certificates – Local Computer. Standardowy 2x klik na cert i dodanie go do personal certificates w Current User nie pozwoli nam siÄ™ połączyć (przynajmniej mi nie pozwalaÅ‚o ;)
1 commentJan 10
Podstawowy Survival Kit
Zacząłem się zastanawiać co jest niezbędne do przetrwania w przypadku kataklizm czy wojny:
- nóż – najlepiej wojskowy z mocnym ostrzem
- ciepła odzież
- koce
- jedzenie
- czekolada (wysoka kaloryczność)
- mąka (bo można z niej zrobić dużo rzeczy)
- woda w butelkach (uniknięcie skażenia)
- długoterminowe konserwy (mięso)
- smalec (z tego co wiem nie psuje siÄ™ – dobry do smażenia)
- cukier (wysoka kaloryczność)
Ktoś ma jeszcze pomysły co powinno się w tym znaleźć?
No commentsJan 10
Od czego zacząć?
Coraz bardziej zaczÄ…Å‚em siÄ™ interesować survivalem – od czego w sumie zacząć zbieranie wiedzy na ten temat? Chyba najważniejsze w tym wszystkim jest:
- wiedzieć co robić
- być przygotowanym
- mieć zapasy
Czas wybrać się do księgarni i poszukać jakichś książek na ten temat ;)
No commentsNov 9
nforce lan + linux
Nie wiedzieć czemu, zawsze kiedy trzeba coÅ› szybko zrobić, wszystko siÄ™ sypie. TrafiÅ‚o mi siÄ™ postawienie firewalla na skÅ‚adanym serwerze opartym o pÅ‚ytÄ™ Asusa – P5NT WS. PÅ‚yta oparta jest na chipsecie Nvidia nforce 680 LT SLI i…no wÅ‚aÅ›nie. Tu zaczynajÄ… siÄ™ schody. Standardowy sterownik forcedeth dostÄ™pny w każdej dystrybucji nie zadziaÅ‚aÅ‚ – sieciówka nie Å‚apaÅ‚a adresu IP (ani statycznie ani dynamicznie przez DHCP). Po dÅ‚ugich poszukiwaniach w internecie, natrafiÅ‚em na jedno rozwiÄ…zanie: należy dopisać do opcji moduÅ‚u nastÄ™pujÄ…ce parametry: msi=0 msix=0
Reload modułu wygląda więc następująco:
$~# modprobe -r forcedeth
$~# modprobe forcedeth msi=0 msix=0
Oct 2
Radio Kampus ;)
DziÅ› razem z D0m3lem odwiedziliÅ›my ulubione Radio Kampus. W Studenterii zaprezentowaliÅ›my siÄ™ (jak najlepiej ;) jako administratorzy. Poniżej – link do audycji :) Enjoy :P
http://nano.gametv.pl/kampus.mp3
No comments

