LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   port forwarding problem (https://www.linuxquestions.org/questions/linux-networking-3/port-forwarding-problem-101452/)

syrtsardo 10-07-2003 09:42 PM

port forwarding problem
 
Hello, I have a problem with my port forwarding, I'm using ipchains with smoothwall linux which is at 192.168.0.1. I am trying to run a web server from my slackware box which is at 192.168.0.142 port 80. The page works from jthe 192.168.0.142 address but over the internet it only works from my school. I cant view it here because smoothwall wont let me, and other people on the internet cant view it eather but they can see that port 80 is open. I dont know why only my school can see it.

Here is the out put from ipchains:

# ipchains -L
Chain input (policy REJECT):
target prot opt source destination ports
ipac_bth all ------ anywhere anywhere n/a
ipac_in all ------ anywhere anywhere n/a
squid all ------ anywhere anywhere n/a
ACCEPT all ------ anywhere anywhere n/a
ACCEPT all ------ anywhere anywhere n/a
secin all ------ anywhere anywhere n/a
block all ------ anywhere anywhere n/a
- all ----l- anywhere anywhere n/a
Chain forward (policy REJECT):
target prot opt source destination ports
secout all ------ anywhere anywhere n/a
MASQ all ------ 192.168.0.0/24 anywhere n/a
MASQ all ------ 192.168.0.0/24 anywhere n/a
dmzholes all ------ anywhere anywhere n/a
ACCEPT all ------ anywhere 192.168.0.0/24 n/a
- all ----l- anywhere anywhere n/a
Chain output (policy ACCEPT):
target prot opt source destination ports
ipac_bth all ------ anywhere anywhere n/a
ipac_out all ------ anywhere anywhere n/a
Chain squid (1 references):
Chain secin (1 references):
target prot opt source destination ports
ACCEPT all ------ anywhere anywhere n/a
Chain secout (1 references):
target prot opt source destination ports
ACCEPT all ------ anywhere anywhere n/a
Chain block (1 references):
target prot opt source destination ports
ACCEPT tcp ------ anywhere anywhere any -> 1024:65535
ACCEPT udp ------ anywhere anywhere any -> 1024:65535
ACCEPT tcp ------ anywhere anywhere any -> 1024:65535
ACCEPT udp ------ anywhere anywhere any -> 1024:65535
xtaccess all ------ anywhere anywhere n/a
ACCEPT udp ------ anywhere anywhere any -> 500
ACCEPT 47 ------ anywhere anywhere n/a
ACCEPT ipv6-crypt------ anywhere anywhere n/a
ACCEPT ipv6-auth------ anywhere anywhere n/a
ACCEPT udp ------ anywhere anywhere any -> 500
ACCEPT 47 ------ anywhere anywhere n/a
ACCEPT ipv6-crypt------ anywhere anywhere n/a
ACCEPT ipv6-auth------ anywhere anywhere n/a
ACCEPT icmp ------ anywhere anywhere any -> any
ACCEPT icmp ------ anywhere anywhere any -> any
Chain xtaccess (1 references):
target prot opt source destination ports
ACCEPT tcp ------ anywhere anywhere any -> auth
ACCEPT tcp ------ anywhere anywhere any -> auth
ACCEPT tcp ------ anywhere anywhere any -> 222
ACCEPT tcp ------ anywhere anywhere any -> 222
ACCEPT tcp ------ anywhere anywhere any -> www
ACCEPT tcp ------ anywhere anywhere any -> www
Chain dmzholes (1 references):
Chain dmzblock (0 references):
target prot opt source destination ports
REJECT all ----l- anywhere ip0089.megapopmm.quik.com.au n/a
Chain ipac_in (1 references):
target prot opt source destination ports
- all ------ anywhere anywhere n/a
- all ------ anywhere anywhere n/a
- all ------ anywhere anywhere n/a
Chain ipac_out (1 references):
target prot opt source destination ports
- all ------ anywhere anywhere n/a
- all ------ anywhere anywhere n/a
- all ------ anywhere anywhere n/a
Chain ipac_bth (2 references):


thanks

boreo 10-07-2003 09:56 PM

The reason is that 192.168.0.142 is a private IP and only the people on that network can see it.

syrtsardo 10-07-2003 10:04 PM

yeah, thats why im trying to forward it from the smoothwall machine.

Internet -- Smoothwall 203.166.25.x & 192.168.0.1 -- Slackware with apache 192.168.0.142.

Sorry I'm a bit new to linux and i don't know much about ipchains. I set up through the smoothwall web admin pages the port forwarding and opend the port but it only works from my school.

syrtsardo 10-08-2003 05:54 AM

Funny thing is people from class C networks dosent seem to be able to get in but class A and B can.

ehdwuld 10-08-2003 06:03 AM

RFC 1918

private ip spaces aren't sent over the internet

but reserved for local area networks

ehpserver 10-08-2003 09:04 AM

try firestarter.sf.net

apextreMe 07-19-2004 01:50 AM

actually, i got this problem too...I cant forward ports to LAN computers. someone help pls!


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