LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 08-09-2005, 12:34 PM   #1
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
shorewall problem DNAT


hi there

i was looking to correct the erros that i am doing

this is what i want to do

there are 3 machines

A- client machine
B- firewall
C -real proxy


all of them are on same network
now i have setup B as the proxy for A and at B i have used DNAT to specify to forward all requests to machine C on its proxy

i have these settings in my rules file for shorewall at B

DNAT lan lan:<ip of C>:3128 tcp

DNAT fw lan:<ip of C>:3128 tcp

the second rule which is for the firewall i.e B works fine i.e i can access the internet fine from B using B''s IP as my proxy server which forwards this to C

but other machines like A cannot connect to C wioth B's IP
they can connect if they cpecify C's IP in their proxy settings

i have the ACCEPT policy for all in my policy file

any thing that i need to check???

regards
 
Old 08-10-2005, 05:31 PM   #2
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
Have you looked at /sbin/shorewall status ?

Have you looked at /sbin/shorewall status ?

Try making the connection that is failing.
#

/sbin/shorewall status > /tmp/status.txt
#

If you post the /tmp/status.txt file, someone may be able to help you.
 
Old 08-10-2005, 10:09 PM   #3
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 58
thaks for the tip

will surely do that ASAP
 
Old 08-11-2005, 12:53 PM   #4
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 58
well

there was a mistake in the addressing scheme in my case
got that correct stil the same problem

but i got my setup working with ethernet bridging
from
bridge.sourceforge.net
 
  


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
iptables DNAT problem eantoranz Linux - Networking 2 09-12-2006 02:00 PM
dnat problem jelgavchik Linux - Networking 0 01-20-2005 07:35 AM
Strange problem about iptables DNAT. zufeng Linux - Networking 1 06-28-2003 12:09 PM
problem about iptables DNAT. zufeng Linux - Security 3 06-19-2003 10:29 AM
DNAT and prerouting is my only problem closer8888 Linux - Networking 0 02-17-2003 11:46 PM


All times are GMT -5. The time now is 04:04 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration