Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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, netmask
    T2000 set at, netmask, default route, and nameserver

    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 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

    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