Solved

Need help to configure a gateway server in linux

Posted on 2009-07-02
1
383 Views
Last Modified: 2013-12-16
I am using Fedora core 8 as a gateway server. In my gateway server I have configured DHCP, DNS, Squid Proxy & it will act as router (IPForwarding). I am connecting internet using Linksys broadband router in that router NAT enabled. If any client connects to my gateway server they can able to access the internet directly because in router NAT enabled and in getaway server IP-Forwarding enabled.


I enable IP-Forwarding in gateway server for VPN Routing.

Problem:

From any client pc if we ping google.com or any website I am getting icmp reply by default, so user not using the proxy server they accessing the internet directly. This problem occurs due to enable NAT in router and IPforwarding in gateway server.


Gateway server NIC details:
eth0: 192.168.0.0/24   (For local connection)
eth1: 192.168.20.0/24 (For broadband connection)

This is my requirement:

1)      I want to block the user to access the internet directly, by using firewall. (without disable the NAT and IP-Forwarding)
2)      I want to allow one particular ip to access the internet directly via gateway server using NAT.
3)      Allow one particular website (eg. MSDN site) to all via NAT in gateway server.


0
Comment
Question by:rajasekarramasamy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
AngelGabriel earned 250 total points
ID: 24768591
You should look into a distribution called Endian Firewall - It will help you to achieve what you want, without having to learn to write iptables rules properly
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question