Having computer problems. Anyone have an idea what is wrong? My landlords did some work thing where they had to cut off power. When the power came back on something was screwed up, my main system no longer has a connection. It was working just fine, I had rebooted the computer a few times earlier with no problem, but I hadn't rebooted the server.
I use iptables to route the traffic through the server (which I am typing this on now) to my main system using:
ifconfig eth1 192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0
iptables -P FORWARD ACCEPT
iptables -A POSTROUTING -t nat -s 192.168.0.1/24 -j MASQUERADE
The server has an internet connection fine. ifconfig shows the above command fine. I have my main system set to 192.168.0.2 with the gateway of 192.168.0.1. From the server I can ping .0.2 just fine (when the main system is on), but the computer can not ping .0.1.
I added some prerouting to forward the port so I could stream my webcam, and I thought that might be the problem:
iptables -A FORWARD -p tcp --dport 8080 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 8080 -j DNAT --to-destination 192.168.0.2
so I left that off when I rebooted the server and still nothing. I'm just about to saw fuck it and reinstall the server, but then I would lose my webpage and all of that, which would be a hassle.
Anyone think of anything I am doing wrong?