[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
 

Re: [TEKNIK] nat i fedora11



Citat af "Ari Lehtonen" <sslug@sslug>:

Er der nogen der har nogle gode råd om hvordan man kan få et mobilt modem tilkoblet UBS (ppp0) i Fedora 11 til at koble op mod en "server" tilkoblet Ethernet-port (eth0)?

Jeg har prøvet utallige forskellige metoder og programmer (fx. shorewallo og den interne brandmur i fedora 11) og defineret en nat med masquerading og ip-forwarding til den eksterne server som har en fast ip-adresse og er tilkoblet eth0, men uden held. Jeg får altid fat i min web-server på maskinen når jeg laver et http-request (port 80) på den public ip-adresse som modemet har fået tildelt i ppp0.

Jeg kan godt få forbindelse til min web-server via ppp0 som kører på linux-maskinen (fedora 11), med nat virker altså ikke og derfor falder det altid tilbage til web-serveren, som er min lokal web-server (apache) på maskinen.

Er det dét her du vil?

    ____________
   (            )
   (  INTERNET  )
   (____________)
         |
    _____|____________
   (                  )
   (   ppp0           ) ukendt IP, f.eks ved dhcp
   (                  )
   (  OMTALTE MASKINE )
   (                  )
   (   eth0           ) 192.168.1.1
   (__________________)
         |
    _____|__________
   (                )
   (  eth0          ) 192.168.1.2
   (                )
   (  ANDEN MASKINE )
   (________________)

For så kører du:

# iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j MASQUERADE
# iptables -A FORWARD -m state --state ESTABLISHED,RELATED -d
192.168.1.0/24 -j ACCEPT

på den omtalte maskine.

/kallenberg



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-10-01, 02:01 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] *