Find the answer to your Linux question:
Results 1 to 2 of 2
I'm trying to share internet from my laptop to my t2000 server. I'm running slackware 14 on the laptop, solaris 11 on server. Laptop is connected to internet via wlan0, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    9

    No internet connection with masquerade on iptables


    I'm trying to share internet from my laptop to my t2000 server. I'm running slackware 14 on the laptop, solaris 11 on server. Laptop is connected to internet via wlan0, t2000 is connected to laptop on eth0.

    I've done this on the laptop:

    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

    I have my laptop eth0 set at 192.168.200.105, netmask 255.255.255.0
    T2000 set at 192.168.200.100, netmask 255.255.255.0, default route 192.168.200.105, and nameserver 8.8.8.8.

    The thing is I have ports 22 and 80 forwarded to my server, and I can ssh into it from an outside network. But I try pinging google.com on it, and it won't reach it. I dont understand why it can't get internet access, but yet I can ssh into it and access it from outside the network. Any ideas?

  2. #2
    Just Joined!
    Join Date
    Oct 2013
    Posts
    7
    Hi!

    Stop being so mysterious; show us your laptop's firewall! Your problem seems reminiscent of a forwarding problem, but if you're using Slackware something that simple shouldn't be stoping who.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •