[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Ipchains kommando søges! Haster!



Hej!

Vi har et lokalnet der forbundet med en skole. Mellem os og skolen er der en
Linuxbox, der kører IP-Masquerading. Den virker udemærket. Problemet er, at
vi har en server på lokalnettet, som vi gerne vil have adgang til udefra det
store Internet. I hvert fald til en http-server. Hvordan gør man det med
ipchains?

Jeg har vedlagt outputtet fra nogle af de programmer, jeg mener er
nødvendige. Jeg er næsten helt sikker på, at der er for mange overflødige
routes, men som det er nu virker masqueraden i hvert fald.

For at gøre det hele lidt nemmere :
195.192.206.6 : IP-Masqueradens IP-nummer ud mod Internet
195.192.206.8 : Lokalnets-serverens godkendte IP-nummer
192.168.1.201 : Lokalnetsserverens LAN-IP nummer
192.168.1.254 : IP-Masqueradens Lokale IP nummer
195.192.206.1 : Skolens gateway

Jeg håber virkelig der er nogen der kender svaret på den/de kommando(er) jeg
skal bruge. Jeg kan forstå, at det højst sandsynligt er noget med
port-forwarding, men jeg kan ikke finde ud af, hvordan jeg skal skrive
kommandoen.

Mvh
Thomas Rokamp


OUTPUTS:
ipchains -L :
Chain input (policy ACCEPT):
Chain forward (policy DENY):
target     prot opt     source                destination           ports
MASQ       all  ------  192.168.1.0/24        anywhere              n/a
Chain output (policy ACCEPT):

route :
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
195.192.206.8   192.168.1.254   255.255.255.255 UGH   0      0        0 eth1
195.192.206.8   lucifer.lyngbye 255.255.255.255 UGH   0      0        0 eth0
192.168.1.254   *               255.255.255.255 UH    0      0        0 eth1
lucifer.lyngbye *               255.255.255.255 UH    0      0        0 eth0
195.192.206.0   lucifer.lyngbye 255.255.255.0   UG    0      0        0 eth0
195.192.206.0   *               255.255.255.0   U     0      0        0 eth0
195.192.206.0   *               255.255.255.0   U     0      0        0 eth1
192.168.1.0     192.168.1.254   255.255.255.0   UG    0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         gatelund.lyngby 0.0.0.0         UG    0      0        0 eth0
default         gatelund.lyngby 0.0.0.0         UG    1      0        0 eth0

route -n :
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
195.192.206.8   192.168.1.254   255.255.255.255 UGH   0      0        0 eth1
195.192.206.8   195.192.206.6   255.255.255.255 UGH   0      0        0 eth0
192.168.1.254   0.0.0.0         255.255.255.255 UH    0      0        0 eth1
195.192.206.6   0.0.0.0         255.255.255.255 UH    0      0        0 eth0
195.192.206.0   195.192.206.6   255.255.255.0   UG    0      0        0 eth0
195.192.206.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
195.192.206.0   0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.1.0     192.168.1.254   255.255.255.0   UG    0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         195.192.206.1   0.0.0.0         UG    0      0        0 eth0
0.0.0.0         195.192.206.1   0.0.0.0         UG    1      0        0 eth0





 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:57 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *