Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *********************************************
- * CREATE A WIRELESS AD-HOC NETWORK TO SHARE *
- * YOUR MOBILE BROADBAND INTERNET CONNECTION *
- * IN UBUNTU *
- *********************************************
- 01. Connect to your mobile broadband using
- NetworkManager (NM).
- 02. Click on the NM icon and choose 'Create
- New Wireless Network'.
- 03. Enter the desired details for the network
- and click 'Create'.
- 04. Right-click on the NM icon and select
- 'Edit Connections'.
- 05. Go to the 'Wireless' tab and double-click
- on the created network.
- 06. Head over to 'IPv4 Settings' tab.
- a. Click 'Add' under 'Addresses'.
- b. Fill:
- Address: 192.168.133.1
- Netmask: 255.255.255.0
- Gateway: 0.0.0.0 (or leave blank)
- DNS Server: 8.8.4.4,8.8.8.8
- c. Click 'Save'.
- d. Click 'Close'.
- 07. Open Terminal and enter these four lines:
- sudo iptables -A FORWARD -i ppp0 -o wlan0 -s 192.168.133.1/24 -m conntrack --ctstate NEW -j ACCEPT
- sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
- sudo iptables -A POSTROUTING -t nat -j MASQUERADE
- sudo echo 1 > /proc/sys/net/ipv4/ip_forward
- ************************
- * SETTINGS FOR CLIENTS *
- ************************
- Network Name (SSID): YOURADHOCNETWORKNAME
- IP Address: 192.168.133.[2-254]
- Netmask: 255.255.255.0
- Gateway: 192.168.133.1
- DNS Servers: 8.8.4.4
- 8.8.8.8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement