Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Something
Saturday, January 19th, 2008 at 12:53:23am UTC 

  1. My Ethernet card is eth0 the ip addy is 192.168.0.1 static
  2. My Wireless card is wlan0 the ip addy is 192.168.2.3 Dhcp
  3. My Router ip addy is 192.168.2.1
  4.  
  5. Im trying to internet connection share the eth0 and wlan0. Wlan0 is the internet connection
  6.  
  7. sudo ifconfig wlan0 192.168.0.1
  8. sudo iptables -A FORWARD -i eth0 -o wlan0 -s 192.168.0.0/24 -m state --state NEW -j ACCEPT
  9. sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
  10. sudo iptables -A POSTROUTING -t nat -j MASQUERADE
  11. sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
  12.  
  13.  
  14. ----------------Dhclient
  15.  
  16.  
  17. [email protected]:~$ sudo dhclient
  18. [sudo] password for family:
  19. Internet Systems Consortium DHCP Client V3.0.5
  20. Copyright 2004-2006 Internet Systems Consortium.
  21. All rights reserved.
  22. For info, please visit http://www.isc.org/sw/dhcp/
  23.  
  24. Listening on LPF/wlan0/00:18:e7:1a:ee:6f
  25. Sending on   LPF/wlan0/00:18:e7:1a:ee:6f
  26. Listening on LPF/eth0/00:0a:e6:a7:25:67
  27. Sending on   LPF/eth0/00:0a:e6:a7:25:67
  28. Sending on   Socket/fallback
  29. DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
  30. DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
  31. DHCPOFFER from 192.168.2.1
  32. DHCPREQUEST on wlan0 to 255.255.255.255 port 67
  33. DHCPACK from 192.168.2.1
  34. SIOCSIFMTU: Invalid argument
  35. bound to 192.168.2.3 -- renewal in 946780455 seconds.
  36.  
  37.  
  38. -------IPTABLES
  39.  
  40. [email protected]:~$ iptables -L
  41. iptables v1.3.6: can't initialize iptables table `filter': Permission denied (you must be root)
  42. Perhaps iptables or your kernel needs to be upgraded.
  43. [email protected]:~$ sudo iptables -L
  44. Chain INPUT (policy ACCEPT)
  45. target     prot opt source               destination         
  46.  
  47. Chain FORWARD (policy ACCEPT)
  48. target     prot opt source               destination         
  49. ACCEPT     0    --  192.168.0.0/24       anywhere            state NEW
  50. ACCEPT     0    --  anywhere             anywhere            state RELATED,ESTABLISHED
  51.  
  52. Chain OUTPUT (policy ACCEPT)
  53. target     prot opt source               destination         

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right