Penguin

Differences between version 7 and previous revision of AdHoc.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 7 Last edited on Tuesday, September 21, 2004 5:03:31 pm by DanielLawson Revert
Older page: version 6 Last edited on Tuesday, September 21, 2004 5:01:40 pm by DanielLawson Revert
@@ -24,37 +24,25 @@
 Nmap run completed -- 1 IP address (1 host up) scanned in 72.847 seconds 
  
 </verbatim> 
  
+<verbatim>  
 tcpdump -i eth1 
-  
 cat /etc/rc.d/init.d/iptables 
-  
 cat /proc/sys/net/ipv4/ip_forward 
-  
 echo 1 > /proc/sys/net/ipv4/ip_forward 
-  
 /sbin/iptables -t nat -A PREROUTING -s 192.168.1.0/255.255.255.0 -d 10.0.4./16 -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128 
-  
 iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE 
-  
 kedit /etc/dhcpd.conf.sample 
-  
 kedit /etc/dhcpd.conf 
-  
 dhcpcd -i eth1 & 
-  
 dhcpcd eth1 
-  
 watch -n 1 iwconfig eth1 
-  
 ping -c 4 localhost 
-  
 netstat 
-  
 netstat -r 
-  
 traceroute mordor 
+</verbatim>  
  
 <verbatim> 
 nslookup 
 > mordor 
@@ -74,10 +62,11 @@
 64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=3.23 ms 
 64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=3.75 ms 
 </verbatim> 
  
-Edit Config files  
-=================  
+! Edit Config files  
+''Why are you editing them? What are you adding to them?''  
+<verbatim>  
 kedit /etc/sysconfig/network 
 kedit /etc/pcmcia/config 
 kedit /etc/wlan/wlancfg-DEFAULT 
 kedit /etc/wlan/wlancfg-deb1 
@@ -97,18 +86,23 @@
 kwrite /etc/sysconfig/networking/default/ifcfg-eth0 
 kedit /etc/resolv.conf 
 search mshome.net 
 nameserver 192.168.1.1 
+</verbatim>  
  
-Get wlan up  
-===========  
+  
+! Get wlan up 
 Setup Windows PC using manual IP on Wifi TCP 192.168.1.1 mask 255.255.255.0 
+  
 wifi mode Ad-Hoc essid deb1 channel 6 
+  
 Run USB Wifi 
+  
 add 192.168.1.1 range to Windows firewall 
  
-Linux Machine  
- as SU (root) 
+Linux Machine as SU (root)  
+''Again, what are you doing in these files?''  
+<verbatim>  
 kedit /etc/wlan/wlancfg-deb1 
 kedit /etc/modules.conf 
 alias eth1 prism54 
 kedit /etc/wlan/wlancfg-deb1 
@@ -125,8 +119,9 @@
 ifup eth1 
 iwlist eth1 scanning 
 samba status 
 hostname 
+</verbatim>  
  
 <verbatim> 
 route -n 
 Kernel IP routing table