Re: Quick+easy port redirect




On 29.03.2008, at 01:25, Tuc at T-B-O-H.NET wrote:
Hi,

Is there a quick/easy (cookbook?) way to do port
redirects. Basically I want that anything that leaves
a specific interface to any ip on port 80 go to
192.168.0.1 port 87.

I'm using ipfw for some other things so it has to
work and play well with that.

Thanks, Tuc


In case you want to try transparent proxying you need to look into firewalling.
I can only tell you how this would work with OpebBSD's PF since I use it
myself and quite like it. :-)

Have a look at pf.conf(5), but it should work like this (in /etc/ pf.conf):
+++++++++++++
int_if = "em0"

rdr on $int_if proto tcp from $int_if:network port { 80 } -> 192.168.0.1 port 87
+++++++++++++
In this example you need to specify your network interface as int_if (in my case it is em0)

If this doesn't suit your situation, you probably need to give us more information: The
kind of network setup you use (eg internal -> firewall -> external) and what needs to connect
to and from where. do you have a firewall solution in place (PF, ipfilter, ipfw)? And what do
you need to achieve?

br & good luck,
Robert
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Netscreen 5GT VIPs and Bridge Mode
    ... I currently have a Netscreen 5GT-AV Firewall connected to a Netcomm ... The modem is in non-bridged mode and its LAN ... The Netscreens Untrust Interface (connected ... I have port forwarding set ...
    (comp.security.firewalls)
  • ng_one2many v.s. AFT (NIC Fault Tolerance/Fail Over/Redundancy Revisited)
    ... Then I was thinking about the OpenBSD/NetBSD bridgeinterface. ... Spanning Tree as an alogirth could provide Intel AFT ... illustrates, regardless of which interface is the root port, ARP replys ... Topology change flag not set, detected flag not set, changes 54 ...
    (freebsd-questions)
  • Re: ng_one2many v.s. AFT (NIC Fault Tolerance/Fail Over/Redundancy Revisited)
    ... Then I was thinking about the OpenBSD/NetBSD bridgeinterface. ... Spanning Tree as an alogirth could provide Intel AFT ... illustrates, regardless of which interface is the root port, ARP replys ... Topology change flag not set, detected flag not set, changes 54 ...
    (freebsd-questions)
  • Reproducable panic under heavy disk I/O on 5.4-latestandthegreatest
    ... the machine panics. ... commands output, the kernel config file, dmesg output and backtraces ... <RealTek internal media interface> on miibus0 ... port may not be enabled ...
    (freebsd-hackers)
  • Re: Publish Web Server behind SBS 2003 Standard
    ... I ended up plugging another router into the WAN. ... How to configure Internet access in Windows Small BusinessServer2003http://support.microsoft.com/kb/825763/en-us ... network interface on right (By default the interface name should be ... input 80 in Outgoing port box. ...
    (microsoft.public.windows.server.sbs)