LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-07-2003, 09:42 PM   #1
syrtsardo
LQ Newbie
 
Registered: Feb 2003
Posts: 17

Rep: Reputation: 0
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
 
Old 10-07-2003, 09:56 PM   #2
boreo
Member
 
Registered: Feb 2003
Location: Dominican Republic
Distribution: Slackware, FreeBSD, RedHat
Posts: 326

Rep: Reputation: 30
The reason is that 192.168.0.142 is a private IP and only the people on that network can see it.
 
Old 10-07-2003, 10:04 PM   #3
syrtsardo
LQ Newbie
 
Registered: Feb 2003
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 10-08-2003, 05:54 AM   #4
syrtsardo
LQ Newbie
 
Registered: Feb 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Funny thing is people from class C networks dosent seem to be able to get in but class A and B can.
 
Old 10-08-2003, 06:03 AM   #5
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
RFC 1918

private ip spaces aren't sent over the internet

but reserved for local area networks
 
Old 10-08-2003, 09:04 AM   #6
ehpserver
Member
 
Registered: Sep 2003
Posts: 38

Rep: Reputation: 15
try firestarter.sf.net
 
Old 07-19-2004, 01:50 AM   #7
apextreMe
LQ Newbie
 
Registered: Jul 2004
Posts: 1

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


Reply



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
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Problem with Port Forwarding Zorrocaesar Linux - Networking 1 10-25-2005 07:18 AM
Problem with Port forwarding :( aronnok Linux - Networking 2 04-06-2005 02:16 PM
port forwarding problem bruj3w Linux - Networking 3 08-13-2004 08:13 PM
port forwarding problem roueleader Linux - Newbie 9 06-11-2002 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:48 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
Open Source Consulting | Domain Registration