RE: Easy port forwarding question

This is a discussion on RE: Easy port forwarding question within the IPFilter forums, part of the System Security and Security Related category; Thanks for the help, My ipf.conf file is blank. (Comments only) ipnat.conf has a single line: rdr bge0 ...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-14-2006
Mann, Bradley
 
Posts: n/a
Default RE: Easy port forwarding question

Thanks for the help,

My ipf.conf file is blank. (Comments only)

ipnat.conf has a single line:
rdr bge0 0.0.0.0/0 port 80 -> 127.0.0.1 port 8080

ifconfig -a outputs the following:
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL> mtu
8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index
2
inet 158.147.51.44 netmask ffffff00 broadcast 158.147.51.255
ether 0:3:ba:f2:e1:a4

Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292

-----Original Message-----
From: owner-ipfilter@coombs.anu.edu.au
[mailto:owner-ipfilter@coombs.anu.edu.au] On Behalf Of Jim Sandoz
Sent: Friday, July 14, 2006 10:47 AM
To: ipfilter@coombs.anu.edu.au
Subject: Re: Easy port forwarding question


brad,

a)
you should be using bge0.

b)
did you drill a hole for the rewritten packets in your ipf.conf?
http://www.phildev.net/ipf/IPFques.html#ques11

c)
post your ipf.conf, your ipnat.conf, and the output of "ifconfig -a";
then we can solve your problem in 60 seconds.
http://www.phildev.net/ipf/IPFmail.html#mail3

regards,
jim


Mann, Bradley wrote:

> Thanks for the help. I tried the those settings but they didn't seem

to
> work. Perhaps I am not understanding the <IF> part of the command.
> netstat -i shows 2 entries:
>
> lo0 8232 loopback localhost ...
> bge0 1500 machinename machinename ...
>
> I tried using both of these as the value for <IF> but the machine

still
> didn't seem to forward the ports. I reloaded the file with the

following
> commands:
>
> ipnat -C
> ipnat -f ipnat.conf
>
> Am I missing something?
>
>
> Brad Mann
> Software Engineer - Information Access Services
> HARRIS Corporation / GCSD
> (321) 984-6292
>
> -----Original Message-----
> From: Flemming Laugaard [mailto:flemming.laugaard@uni-c.dk]
> Sent: Thursday, July 13, 2006 7:46 AM
> To: Mann, Bradley
> Cc: ipfilter@coombs.anu.edu.au
> Subject: Re: Easy port forwarding question
>
>
>>>Hello,
>>>
>>>I am extremely new to ipfilter/ipnat, and all I am attempting to
>>>accomplish is to have port 80 on a machine forward to its own port

>
> 8080.
>
>>>This command will need to be as generic as possible so that it can be
>>>deployed to other locations that have the same configuration but
>>>different IP address.
>>>

>>
>>ipnat:
>>rdr <IF> <SRVIP>/32 port 80 -> 127.0.0.1 port 8080
>>
>>I can't do it more generic than this. You need to set both IP

>
> adresses.
>
>>But that could be solved by scripting :-)

>
>
> You could also try
>
> rdr <IF> 0.0.0.0/0 port 80 -> 127.0.0.1 port 8080
>
> For redirecting anything going anywhere on <IF> port 80. I haven't

tried
> it myself.
>
> Regards
> Flemming Laugaard
>
>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0