LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-01-2006, 10:46 PM   #1
LordHendrix
LQ Newbie
 
Registered: May 2006
Posts: 16

Rep: Reputation: 0
Internet Sharing but behind firewall


Code:
<internet> 
    |
    | 
<firewall>
    |
  <hub>
    |
<internet sharing server>(2 LANCARDS)
           |
           |
    <workstations>
1. the Firewall is using Squid.Proxy.Stable10 allowing only http_port 80, ip 192.168.1.1. so listening on 192.168.1.1 port 80.

2. Internet Sharing Server is Linux i have used for sharing:
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

My question is without using proxyserver settings on workstation how can i access internet? is it possible?
thanks in advance
 
Old 06-02-2006, 01:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
you can add a transparent proxy on the server if you wish: http://www.faqs.org/docs/Linux-mini/...rentProxy.html
 
Old 06-02-2006, 02:47 AM   #3
huanvnn
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
i have a question like LORD HENDRIX

<internet>
|
|
<firewall>
|
<hub>
|
<internet sharing server (ISS)>(2 LANCARDS)
|
|
<mycomputer>
firewall use squid and have ip 192.168.101.1 ,which connect to my ISS and firewall
use daemon pptpd
my ISS have 2 ip eth0 connected to firewall : 192.168.101.81
and eth1 connected to mycomputer : 192.168.0.1
my ISS use vpn connection to connect to internet

can i use ISS to share internet with mycomputer ,if it is able ,can anyone tell me how to write iptable rule,(better if give me the rule with format in file /etc/sysconfig/iptables)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sharing internet with firewall linux distribution centosfan Linux - Networking 1 05-24-2006 08:36 AM
Configuring firewall and internet sharing Ram2 Linux - Newbie 1 03-29-2005 11:27 PM
Troubles with firewall and internet sharing Sim_one80 Linux - Security 6 09-13-2004 02:17 AM
config for LAN/Internet Sharing and firewall Pisces107 Linux - Security 9 12-18-2003 03:23 PM
Internet connection sharing with Firewall steve1401 Linux - Networking 0 06-30-2003 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration