I have recently messed up my network in the attempt to connect two computers using network cards so that comp1 has an access to the internet directly and comp2 uses the comp1 to do the same thing.
General scheme is this:
comp2(eth0) -> comp1(eth1)
comp1(eth0) -> switch -> network
I mixed up comp1 and com2 (thnx Jos)
My interfaces look like this:
comp1:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 10.10.0.10
netmask 255.255.255.0
up/sbin/iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -d 0/0 -j MASQUERADE
comp2:
auto eth0
iface eth0 inet static
address 10.10.0.20
netmask 255.255.255.0
gateway 10.10.0.10
Computers see each other. comp1 can see outside network:
ping 8.8.8.8
works. As comp2 does. But when I try to download stuff on comp2 I get error:
sudo aptitude install geany
Err http:// ....
Temporary failure resulting security.ubuntu.com
Could someone please help me setup this last bit??
My original question is here
I apologize if this is considered spamming or something negative