Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Im connecting with Internet via a proxy server. (Akademic Campus).
Where should I put a proxy-name and port number in Debian. Without this I can't use a apt-get command and I can't even ping a www site.
hi ,
goto edit->preferences in mozilla firefox,there u can find connection settings button , click that and give ur proxy address and port no
regards,
tom.
Hi, be welcome.
To be able of running a command throu a proxy without writing its address every time you type it, better define proxy address and port in your profile file, e.g,:
HTTP_PROXY=http://192.168.1.1:8080
HTTPS_PROXY=http://192.168.1.1:8080
FTP_PROXY=http://192.168.1.1:8080
Replace ip and port with the one applicable to your case.
Then you can edit your /etc/apt/apt.conf file:
Acquire::http::Proxy "false";
Change "false" for "true"
You have options to not use the proxy cache, edit the timeout, ftp access, etc. For better results read the "man apt.conf".
Cheers.
OK, you are having networking newbie behaviour. I see what you call Proxy is possibly your gateway too, as far as you didn't say if you configured your gateway, pay attention to this:
- If you don't read much and you are in a hurry:
# route add default qw ${GATEWAY} metric 1
Understand? You add your default gateway to your network configuration there, replace ${GATEWAY} with your gw ip. Proxy and Gateway are two very different concepts.
- But, if it doesn't work and you want something more "static", instead of typing the command above avery time you get to your campus network:
In your /etc/sysconfig/network (I don't know if it exists in Debian, debianites needed here):
NETWORKING=yes
HOSTNAME=yourbox.yourcampus.com
GATEWAY=192.168.1.1 (the ip of your campus gateway)
In your /etc/hosts:
127.0.0.1 localhost.localdomain localhost
192.168.1.1 yourbox.yourcampus.com yourbox yourcampus.com
In your /etc/resolv.conf:
# search for resolution in your campus if needed, if not, comment it.
search yourcampus.com
#
# Replace the next one with your campus DNS ip, if needed, if not, comment it.
nameserver 192.168.1.1
#
# ISP DNS ip's if needed, if not, comment it.
nameserver 200.33.213.66
nameserver 200.33.209.66
Orrr... you can use some script, under your own risk:
... defining all the ip's and the ethX device in the script file.
I'm tired of writing, you _have_ to give me more data if you need more help.
EDIT: Being a campus network there is a big chance of having dhcp available, you can configure your device, let's say eth0 with "dhclient eth0" for having all the network services available, like internet access.
Last edited by runnerfrog; 01-08-2007 at 04:12 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.