![]() |
|
|||
|
PF supports interface group names jggimi, "lo" is valid and is used in FAQ examples.
But you are right, the skip rule makes it redundant. |
|
||||
|
Thanks BSDfan. I feel sheepish.
![]() Birdmansdomain: I have just recreated your environment, with your pf.conf as posted above. It works fine. TCP traffic from the outside destined for port 80 gets properly routed to the server, and responses get properly routed back. My test configuration: Workstation --- Router ---- Server All three were running 4.5-release. (-current has changes to PF affecting scrub and require-order). Your pf.conf was used verbatim, except for changing the NICs. --------------------------- Server: /etc/hostname.ne3 contained "inet 192.168.0.10/24" /etc/mygate contained "192.168.0.1" # nc -l 80 Router: /etc/hostname.ne3 contained "inet 10.0.0.1/24" /etc/hostname.ne4 contained "inet 192.168.0.1/24" /etc/sysctl.conf contained "net.inet.ip.forwarding=1" an empty /etc/ssh-violate was created with touch(1) your pf.conf was enabled, with the following changes: ext_if="ne3", int_if="ne4", wifi_if="ne5" Workstation: /etc/hostname.ne3 contained "inet 10.0.0.2/24" # nc 10.0.0.1 80 Two-way TCP communication was established and confirmed between nc applets on the workstation and server, through the router.
__________________
OpenBSD LiveCDs/LiveDVDs Last edited by jggimi; 10th July 2009 at 08:59 PM. |
|
|||
|
jggimi has gone the extra mile by testing your ruleset, he has found no obvious problems.
It would seem the issue is elsewhere, one probable cause is that your ISP is filtering packets themselves... perhaps they're blocking incoming traffic on port 80. Please try using a different port to confirm if this is the case. |
|
|||
|
Hmm strange.
Quote:
Quote:
hostname.re0 contains inet 192.168.0.1 hostname.ral0 contains inet 192.168.1.1 Router is OpenBSD Workstation is ubuntu as well, there is no hostname.* Quote:
|
|
|||
|
BTW thanks for being so helpfull
|
|
||||
|
#1:
------- Please post the output of $ route -n show -inetYou may redact any private information, such as your Internet IP address. I ask for your routing information, because you just stated that you have a mygate(1) file, containing incorrect information ("192.168.1.1"). Your default route should be assigned by your ISP. If your ISP connection uses DHCP, the default route will be added when you connect. If your ISP connection is static, your ISP should have provided this information. /etc/mygate is used for static ip address configurations, and describes the default route. Perhaps, if you are using DHCP, a default route is already correctly added, then the use of an incorrect /etc/mygate just causes an error when /etc/netstart issues the route add for it. (That error should appear in /var/log/messages with each boot; you may want to look for it.) ------- #2 ------- Run tcpdump against your internal wired network, to see if the incoming Sync packet from the Internet makes it onto the local LAN. Perhaps the source of your problem is the server at 192.168.0.10. If you see packets get sent to the server, but no valid responses, you have a server problem. If you see valid two-way traffic back and forth, then run tcpdump against your external network. On the external network, if you only see the incoming packet, but no outbound responses, you have a routing problem. e.g.: # tcpdump -neti re0 host 192.168.0.10 # tcpdump -neti em0 host <your remote workstation>
__________________
OpenBSD LiveCDs/LiveDVDs Last edited by jggimi; 11th July 2009 at 01:25 PM. |
|
||||
|
To be clear, regarding IP routing:
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
yeh your sample didnt work, i put www on firewall and didnt have to worry about rdr rule. Working great now
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| back-sql - SQLConnect() failed | vol_o3 | OpenBSD General | 0 | 9th September 2009 09:36 AM |
| pfstat fopen failed: ? | Calderon | FreeBSD General | 3 | 7th May 2009 08:52 AM |
| phpPgAdmin login failed | gosha | General software and network | 14 | 17th March 2009 10:49 PM |
| Communication with su failed | amandus | OpenBSD Packages and Ports | 7 | 17th July 2008 07:17 AM |
| Failed Installs | dctr | OpenBSD Installation and Upgrading | 23 | 4th June 2008 04:25 AM |