Author Topic: Secure wifi conection how to(cus wep is for suckers)  (Read 1824 times)

Nodus

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://
Secure wifi conection how to(cus wep is for suckers)
« on: January 13, 2004, 02:41:33 pm »
this is how i secured my wifi
feel free to html-ize it, fix the typos (im on my 5500 so) and put it in how to
ok so the siuation
you have a linux box with a wifi card and some kind of conection to the internet
you have a z with a compatible wifi card
im not going to tell you how to set those up as thats extensively covered else where
install iptables and turn it on in the kernel(covered else where)
install a terminal app on your z(qterminal ekonsole) what ever
install the ssh client on yor z
install ssh on your linux box
install squid (a proxy server) on your linux box
now the tricky part(s) your going to firewall off all but ssh and then use ssh to tunnel to your linux box\'s proxy
onthe linux box as root
#iptables -A INPUT -i wlan0 -p tcp --syn --destination-port 22 -j ACCEPT
(this tells iptables to let ssh in on the interface wlan0 which you should replace with what ever interface is you wifi card)
#iptables -A INPUT -i wlan0 -p tcp --syn --destination-port ! 22 -j DROP

on the z in the terminal run
ifconfig eth0 192.168.1.2
#ssh -l user 192.168.1.1 -L 101:localhost:3128 sleep 500000
( user is some user on the linux box 192.168.1.1 is the ip of the linux box 101 is just random 3128 is the default squid proxy port and sleep tels it to just sit and pass data for 500000 seconds) and say yes the put in the users password

now om the z open the internet conection wizard set up your net normaly but when you get to proxies change the http proxy to localhost port 101 (the one we picker randomly earlier
now try it out in opera if it work huray and good for you else review ans make sure you modprobe any modules and have the ability to ping the other box