Linux Netfilter discussions
 help / color / mirror / Atom feed
* RE: IP forwarding on port 80
@ 2003-06-12 22:18 George Vieira
  2003-06-13  7:24 ` Kent Wang
  0 siblings, 1 reply; 6+ messages in thread
From: George Vieira @ 2003-06-12 22:18 UTC (permalink / raw)
  To: Kent Wang, netfilter

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

What debugging have you done? tcpdump, iptables logging, anything?
 
Does your web server have a default gateway of the firewall?

Thanks,

 
____________________________________________
George Vieira
Citadel Computer Systems Pty Ltd Systems Manager georgev AT citadelcomputer DOT com DOT au 
Citadel Computer Systems Pty Ltd
Phone : +61 2 9955 2644 HelpDesk: +61 2 9955 2698  <http://www.citadelcomputer.com.au/> http://www.citadelcomputer.com.au
 

[-- Attachment #2: Type: text/html, Size: 4247 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <00b401c331da$246caf80$7035a8c0@hoeschen>]
* IP forwarding on port 80
@ 2003-06-12  7:17 Kent Wang
  0 siblings, 0 replies; 6+ messages in thread
From: Kent Wang @ 2003-06-12  7:17 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 2115 bytes --]

Firewall, called dscp, has these iptables settings:
 
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  localhost.localdomain  anywhere
ACCEPT     all  --  anywhere             anywhere           state
RELATED,ESTABLISHED
ACCEPT     icmp --  anywhere             anywhere
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:sftp
DROP       all  --  anywhere             anywhere
 
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
 
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DNAT       tcp  --  anywhere             dscp.nur.utexas.edutcp dpt:http
to:192.168.0.2
 
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
 
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
HTTP server has these settings:
 
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  localhost.localdomain  anywhere
ACCEPT     all  --  anywhere             anywhere           state
RELATED,ESTABLISHED
ACCEPT     icmp --  anywhere             anywhere
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:sftp
DROP       all  --  anywhere             anywhere
 
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
 
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
Firewall connects to the world via eth1 and to the HTTP server on eth0.
HTTP
server connects to the firewall on eth0 and to another machine on eth1.
 
I can access the HTTP server from the firewall just fine but not from
the
Internet (times out). Any clues?

 


[-- Attachment #2: Type: text/html, Size: 10399 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* IP forwarding on port 80
@ 2003-06-10 22:08 kwang
  0 siblings, 0 replies; 6+ messages in thread
From: kwang @ 2003-06-10 22:08 UTC (permalink / raw)
  To: netfilter

Firewall, called dscp, has these iptables settings:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  localhost.localdomain  anywhere
ACCEPT     all  --  anywhere             anywhere           state
RELATED,ESTABLISHED
ACCEPT     icmp --  anywhere             anywhere
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:sftp
DROP       all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DNAT       tcp  --  anywhere             dscp.nur.utexas.edutcp dpt:http
to:192.168.0.2

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

HTTP server has these settings:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  localhost.localdomain  anywhere
ACCEPT     all  --  anywhere             anywhere           state
RELATED,ESTABLISHED
ACCEPT     icmp --  anywhere             anywhere
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:sftp
DROP       all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Firewall connects to the world via eth1 and to the HTTP server on eth0. HTTP
server connects to the firewall on eth0 and to another machine on eth1.

I can access the HTTP server from the firewall just fine but not from the
internet. Any clues?




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-06-13 20:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-12 22:18 IP forwarding on port 80 George Vieira
2003-06-13  7:24 ` Kent Wang
2003-06-13  8:05   ` Cedric Blancher
     [not found] <00b401c331da$246caf80$7035a8c0@hoeschen>
2003-06-13 20:45 ` kwang
  -- strict thread matches above, loose matches on Subject: below --
2003-06-12  7:17 Kent Wang
2003-06-10 22:08 kwang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox