It is currently Thu, 08 Jun 2023 12:43:22 GMT



 
Author Message
 PPP -nat help
Hi Everybody:
I'm have a very tough time getting  ppp with nat to work. I'm a trying
to route from a privite net (192.168.142.0) to a public net with static
ip address.  I using dc0 and ed0, dc0 is the public interface.
Gateway is enabled.

It seems to me that ppp is forwading packets but NOT translating the
addresses.
If I ping on 192,169.142.191 to 216.136.204.21 (www.freebsd.org) I get
the following
from tcpdump:
192.168.142.191 > 216.136.204.21: icmp: echo request

However I never see an icmp echo reply. So it seems its going out but no
nat.

|----------------|
| staticPPPoE  ( dc0)   |<----------->ISP
|                                     |
|------------|
|192.168.142.192(ed0) |<--------->| 192.168.142.191|
|----------------|                          |------------|

I've been working on this about a week can anyone help.
my ppp.conf file and ifconfig files are at the end
 Thanks in advance.
Cheers,
Tonyste

---------------------ifconfig-------------------------------
govinda# ifconfig -a
ed0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500

        inet 192.168.142.192 netmask 0xffffff00 broadcast
192.168.142.255
        inet6 fe80::250:baff:fea2:93ce%ed0 prefixlen 64 scopeid 0x1
        ether 00:50:ba:a2:93:ce
dc0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500

        inet yy.yyy.yy.yyy netmask 0xfffffff8 broadcast 64.163.12.135
        inet6 fe80::2c0:f0ff:fe5a:f5cd%dc0 prefixlen 64 scopeid 0x2
        ether 00:c0:f0:5a:f5:cd
        media: autoselect (10baseT/UTP) status: active
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
10baseT/UTP <full-duplex> 10baseT/UTP none
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
faith0: flags=8000<MULTICAST> mtu 1500
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9    inet6 fe80::1%lo0
prefixlen 64 scopeid 0x9
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
tun0: flags=8151<UP,POINTOPOINT,RUNNING,PROMISC,MULTICAST> mtu 1500
        inet6 fe80::250:baff:fea2:93ce%tun0 --> :: prefixlen 64 scopeid
0xc
        Opened by PID 288

----ppp.conf---------------------------------
default: # or name_of_service_provider
 set device PPPoE:dc0 # replace xl1 with your ethernet device
 set mru 1492
 set mtu 1492
 set authname tonyste
 set authkey xxyyzz
#set log Phase Chat Connect tun command # you can add more
 set log Phase Chat LCP IPCP CCP TUN TCP/IP command
 set dial
 set login
 set ifaddr xx.xxx.xx.xxx yy.yyy.yy.yyy
 add default yy.yyy.yy.yyy
# I tried with both alias and the keyword nat
#alias enable yes
#alias log yes
#nat enable yes
#nat log yes
#nat use_sockets yes

papchap:
 set authname tonyste
 set authkey xxyyzz



 Tue, 30 Sep 2003 09:25:47 GMT   
 
   [ 1 post ] 

Similar Threads

1. ppp -nat / firewall help

2. ppp sharing via NAT

3. nat works with ppp but not eth0

4. iptables NAT with Alcatel USB PPP over ATM

5. PPP and Multiple Modems for NAT Box

6. NAT & load balanced ppp

7. PPP/Nat router

8. Can't get Dial-up-on-demand using PPP/NAT to work

9. ppp -nat between two public nets

10. ppp -nat + dns enable + local lan question


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software