124b7
![]() |
|
|
|
|
|||||||
| Networking Network related discussions (including general TCP/IP stuff, routing, etc). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I have a NAT server (PF) and 2 nics, one (fxp0) is public ip, and the other (fxp1) is private ip.
I bind 3 private ip on fxp1, 172.16.69.254, 172.16.70.254 and 172.16.71.254. Clients are divided into 2 subnet, 172.16.70.0/24 and 172.16.71.0/24. Clients and NAT server all connect to the same switch (no vlan). Now, these two subnet can connect internet via NAT server, but clients can't ping (connect) the others in another subnet. How can I do to let clients ping clients in another subnet? Thanx. |
|
#2
|
||||
|
||||
|
Please post your /etc/rc.conf and /etc/pf.conf.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
|||
|
|||
|
FreeBSD 8.1-R
[/etc/rc.conf] Code:
defaultrouter="140.xx.yy.126" gateway_enable="YES" ifconfig_fxp0="inet 140.xx.yy.5 netmask 255.255.255.128" ifconfig_fxp1="inet 172.16.69.254 netmask 255.255.255.0" ifconfig_fxp1_alias0="inet 172.16.70.254 netmask 255.255.255.0" ifconfig_fxp1_alias1="inet 172.16.71.254 netmask 255.255.255.0" pf_enable="YES" pflog_enable="YES" Code:
ext_if="fxp0" int_if="fxp1" wan_net = "140.xx.yy.0/25" set skip on lo scrub in all nat on $ext_if from 172.16.70.0/24 to any -> 163.30.69.5 nat on $ext_if from 172.16.71.0/24 to any -> 163.30.69.5 Last edited by DutchDaemon; August 31st, 2010 at 10:12. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#4
|
|||
|
|||
|
http://www.freebsd.org/doc/handbook/...k-routing.html
Quote:
|
|
#5
|
||||
|
||||
|
gateway_enable is already on or those clients wouldn't be able to access the internet either.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#6
|
||||
|
||||
|
The NAT lines make no sense to me; what is 163.30.69.5?
Also, you don't mention the OS used by the clients, or whether you've tried tests other than ping. Some poorly-written OSes think ICMP packets are scary hacker tools, and firewall them. |
|
#7
|
||||
|
||||
|
Run tcpdump(1) on the fxp0 interface and start pinging.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#8
|
|||
|
|||
|
Quote:
I use win2000 to ping win7. I ping clients on NAT server, too. When I use win2000 to ping win7 in another subnet, no responds. At the same time, I ping the same win7 client computer from NAT server, it responds. I'll tcpdump it and post again, thanx. |
|
#9
|
||||
|
||||
|
Have a look at netstat -rn too. Both networks should be accessable via fxp0.
You may also want to limit tcpdump to just show icmp: # tcpdump -ni fxp0 icmpOr just to/from a certain host: # tcpdump -ni fxp0 icmp and host 172.16.70.12
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#10
|
|||
|
|||
|
Thanks wblock and SirDice.
I solved this problem. It just win7 default only receives ping packet from the same subnet. I edit firewall rules of win7 and it works fine. Thanks a lot. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multi domains with one nameserver | sihaam | Web & Network Services | 3 | August 5th, 2010 07:57 |
| Multi-boot Problem | esemesm | Installing & Upgrading | 4 | July 1st, 2010 04:51 |
| [Solved] Configure two NICs with same subnet | tetelee | Networking | 2 | May 4th, 2010 11:38 |
| Multi-threaded BIND9? | cpeterson | General | 1 | April 28th, 2009 22:40 |
| NAT: no NAT for local traffic | mgp | Networking | 7 | December 9th, 2008 22:27 |