Solved Trouble configuring proxy on a fresh install of FreeBSD 10.1

Hi everyone,
I just installed FreeBSD for the first time, logged in as non-root user
but am facing trouble configuring my Ethernet connection

uname -a
Code:
FreeBSD workhorse 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 root@releng1.nyi.freebsd.org:/usr.obj/usr/src/sys/GENERIC amd64

ifconfig
Code:
re0: flags= *** bla bla
bla bla
ether 40:61:86:ec:25:57
inet 10.105.5.213 netmask 0xffffff00 broadcast 10.105.5.255
nd6 bla bla
media: Ethernet autoselect (1000baseT <full-duplex>)
status:active

lo0: bla bla
inet 127.0.0.1 bla bla
bla bla

env | grep proxy
// it gives no results

// My university provides internet connection with a proxy 10.3.100.207:8080
ping -c 3 10.3.100.207
// 0% packet lost

ping -c 3 www.google.com
// 100% packet lost!

aAbout my system:
AMD 64 desktop, ZFS filesystem
iIt is a fresh install, nothing more
Internet connection IPV4, IP provided by DHCP
My university provides internet connection with a proxy 10.3.100.207:8080, no username or authentication

ping -c 3 www.google.com
Code:
PING www.google.com (216.58.196.100)

ping -c 3 216.58.196.100
// again 100% packet lost

Code:
ifconfig_re0="DHCP"
// this already exits in /etc/rc.conf

Code:
setenv http_proxy http://10.3.100.207:8080
setenv https_proxy https://10.3.100.207:8080
ping doesn't work even after setenv method, although the env |grep proxy // this now shows an entry for http_proxy and https_proxy

I am using tcsh shell and have also tried capitalising HTTP_PROXY and HTTPS_PROXY in the setenv method

Update:
The wierd thing is that pkg install xorg is able to access the internet and install xorg, but ping shows 100% packet loss.
 
HTTP_PROXY and HTTPS_PROXY are web proxies. This does not work for ICMP (i.e. ping(8)), it only works for HTTP(S) connections (i.e. fetch(1) and browsers).
 
Back
Top