Ubuntu behind proxy, and access only to several IP addresses
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Ubuntu behind proxy, and access only to several IP addresses
On my local network I have to setup Linux Ubuntu boxes, so their users will be able to access only to few (2-3) domains. Also, all of those Linux Ubuntu boxes are behind Proxy.
Tried to configure this using Firestarter, but I did not make it after several hours of attempts.
Most of the time I had two cases - or I was able to access to all of Internet, or wasn't at all (in Firefox I was getting message "The proxy server is refusing connections").
IP address of Proxy server is 192.168.21.155.
What I tried with Firestarter is to define Outbound traffic policy as Restrictive by default => whitelist traffic => Allow connections to host: 192.168.21.155, and several IP addresses I want to give access. But no luck, all of the websites where blocked in this case.
Also, tried to Allow service DNS (port 53), and Http-alt (port 8080) to several IP addresses I want to give access.
But I did not make it.
Also, I removed UFW (Uncomplicated Firewall) with all of it's definition, and on Iptables I have no rule defined.
Can you help me please how to configure firewall in this case?
when you've applied a rulebase, actually SHOW us the config, you can't possibly describe it. run "iptables -vnL"
If you're using an explicit proxy like you appear to be doing from the FX error, you should ONLY need to permit access to the port on the proxy server (for the web access that is, obviously there are other background default rules for other unrelated things). DNS would be done on the proxy itself, not the client under just about all configurations.
---------- Post added 05-03-13 at 03:30 PM ----------
when you've applied a rulebase, actually SHOW us the config, you can't possibly describe it. run "iptables -vnL"
If you're using an explicit proxy like you appear to be doing from the FX error, you should ONLY need to permit access to the port on the proxy server (for the web access that is, obviously there are other background default rules for other unrelated things). DNS would be done on the proxy itself, not the client under just about all configurations.
tnx, but if i give access to proxy's port 8080, i will have access to whole internet, and i need access only to several ip addresses. that's where i have a problem.
i don't have access to proxy configuration (if it is that what you mean). i can setup only linux ubuntu boxes.
and just to mention, that if firewall (in this case firestarter) is closed (disabled), i have full access to internet, so there are no problem in proxy, only problem is with firewall configuration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.