LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-06-2013, 03:01 AM   #1
esornep
Member
 
Registered: Jun 2012
Posts: 48

Rep: Reputation: Disabled
Cannot ping public IP from LAN


Hello,
The current situation is as follows :
Two LAN cards on the system :
1.Connected to the internet
2.Other one creating a LAN and providing internet with conditions imposed by using squid.(IPs are manually assigned and not a VLAN)

Two issues :
1.One cannot ping a public IP from within the LAN (for example :
system ip : 192.168.250.102
can ping another system with ip 192.168.250.106 but cannot ping google.com )
2.Is there a way in squid to control the download limit and provide user authentication (in sense the user has to give in a password to access the net).
Thanks.
 
Old 06-07-2013, 08:15 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Squid is a web proxy; it supports the HTTP, HTTPS and FTP protocols. Ping uses ICMP.

In order to ping a host on the Internet (or use any protocol other than the three supported by squid), you need to configure your gateway to perform IP address translation on outgoing connections, hiding the internal, non-routable addresses behind the public IP of the gateway. You can't do this with squid; you'll have to use iptables/netfilter.

Squid can be set up to require authentication. A Google search will turn up lots of howtos and examples (like this page and this page).

I'm sure it can do download and bandwidth limiting too, although I've never tried that myself.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
[SOLVED] Forward public IP to local IP - can't ping host in public IP subnet raczkowski1 Linux - Networking 2 03-25-2012 11:17 AM
[SOLVED] ping www.google.co.in gives unknown host error ,ping to LAN address works fine aspiring_stellar Linux - Newbie 10 05-24-2011 03:26 PM
sharing VPN access with lan + after vpn connected unable to ping lan/public ip xxx_anuj_xxx Linux - Networking 1 03-14-2008 02:50 AM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration