firewall question

firewall question

Post by vvvv » Sun, 05 Oct 2003 03:54:40

i am running seawolf redhat 7.1, php 4.1.2, apache 1.3, and using iptables.
"Gate" is my gateway with an external eth, and an internal eth. "Mac" is in
my lan. i have an application that runs Mac, listening on port 23000. Gate
runs php and apache and the firewall. Gate forwards packets on 23000 to Mac.

i asked a friend to telnet in to my external ip on port 23000, and Mac
receives all the forwarded data. when i try to telnet to Gate's external ip
from within my net (ie., not from Gate, but from Mac) the packets get to
Mac. but when i try to telnet from Gate, i get "host destination
unreachable" on that port.

a php page (on Gate) that open a sockets to send packets to Gate's external
ip, which should then be forwarded to Mac, gets "error: 111: connection
refused". if i change the ip in the php script to Gates' internal ip
(, the packets get forwarded.

does this sound like something obvious that i overlooked? can php connect to
the external ip of the machine it is running on? i would think it can.

any suggestions are appreciated.


1. FreeBSD firewall question + a really dumb question(yes I'm new to FreeBSD)

I need to get a firewall up in our office with no NAT.  I looked at a book
called FreeBSD Unleashed.  The book seemed to explain things pretty well.
Anyone else have an opinion on this book?

Okay, I tried version 4.3, but I could not add the iptables module.  Version
4.4 seems to use IPFW and the rules use a more english like syntax than
characters $.  Am I right so far??

A lot of the optins are turned on in files.  FIREWALL = yes in rc.conf.
Here is the dumb question:

In DOS i could use edit to edit a file, what do I use in FreeBSD??


2. Sec. Vulnerability in CIFS/9000 Server

3. Arno Firewall question: Internal PC's can't get to IP forwarded service/webserver

4. error during probe

5. RPC over firewall questions

6. Changing app menu in fvwm

7. some Linux/Firewall questions????

8. How to kill/restart gettys?

9. Firewall question

10. Newbie firewall question

11. Gigabit redundant firewall questions (hardware and software)

12. Firewall Question

13. iptables/firewall question