View Full Version : [ubuntu] Using Ubuntu 10.04 to share to Server

April 26th, 2012, 10:00 AM
My router went splat in a nasty storm, so I'm trying to find a way to connect the wireless connection from my neighbors house through ethernet to my server, so that I can ssh.

I've gone to the wired tab under 12.04 beta2 and switched to share with other computers, but the ip address is - and I'm unable to connect to the server over SSH.

April 29th, 2012, 10:54 PM
First of all, have you checked with your neighbor if it's okay to use their network?

Anyway, are you asking how to use your server as a gateway/router for your lan? If so, you need to do at least two things:

1) set up forwarding on your server in /etc/sysctl.conf by uncommenting the line:

2) set up iptables

iptables -t nat -A POSTROUTING -s [internal network address CIDR] -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth1 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT

May 4th, 2012, 11:08 PM
Yes, I live in a college town, and my neighbor is leting me use their internet. Thank you very much it worked perfectly. Not sure what it does, but thank you.