2 lame questions (ipfw, keyboard driver)

OxY oxy at field.hu
Fri Dec 23 10:36:13 PST 2005


whatever i give to ipfw rule after fwd it forwards me to my box: port
for example...
fwd 10.254.64.10,22 tcp from any to 195.70.x.x

it is forwarding me to 195.70.x.x port 22
what's wrong?

----- Original Message ----- 
From: "OxY" <oxy at field.hu>
To: "Julian Elischer" <julian at elischer.org>
Cc: <freebsd-hackers at freebsd.org>
Sent: Friday, December 23, 2005 3:50 PM
Subject: Re: 2 lame questions (ipfw, keyboard driver)


> yeah, it's 10.254.64.14 is the other machine in my vpn...
> so not the machine, and 22 port is enabled,
> i can use it by 'ssh 10.254.64.14 '
>
> options IPFIREWALL_FORWARD   is in my kernel
>
> root# ipfw show 310
> 00310      4       204 fwd 10.254.64.10,2233 tcp from any to 195.70.x.x 
> dst-port 16345
>
> from outside it says:
>
> su-2.05b# telnet 195.70.x.x16345
> Trying 195.70.x.x...
> telnet: connect to address 195.70.x.x: Connection refused
> telnet: Unable to connect to remote host
>
> ----- Original Message ----- 
> From: "Julian Elischer" <julian at elischer.org>
> To: "OxY" <oxy at field.hu>
> Cc: <freebsd-hackers at freebsd.org>
> Sent: Thursday, December 22, 2005 7:45 PM
> Subject: Re: 2 lame questions (ipfw, keyboard driver)
>
>
>> OxY wrote:
>>
>>> hi!
>>>
>>> i have two lame questions, one about ipfw port forwarding, and
>>> an other about keyboard driver...
>>>
>>> 1, i have a box with public ip 195.70.x.x and openvpn 10.254.0.14 ip..
>>> i'd like to accept connections on my public ip's y port and forward it 
>>> to my 10.254.64.14 port 22..
>>> is this possible?
>>> first i tried ipfw forward rule
>>> $cmd 00310 fwd 10.254.64.10,22 tcp from any to 195.70.x.x 1634
>>> , but it said conn refused....
>>
>>
>> that should work..
>> is there something listenning on 10.254.64.10,22 ?
>> 10.254.64.14 and 195.70.x.x are the same machine?
>>
>> do you have
>>
>> options         IPFIREWALL_FORWARD      #enable transparent proxy support
>>
>> in your kernel?
>>
>> is the rule being used?
>> (use "ipfw show 00310" to see usage counts)
>>
>>
>>>
>>> do i need divert? i don't know the syntax, coz i don't understand it 
>>> from the manpage..
>>>
>>> i tried natd with -redirect_port, failed too...
>>>
>>> 2, my box is in co-loc and when i reboot it OS doesn't load atkbd, then 
>>> when i ask for
>>> console i can't use my keyboard..
>>> how can i make it to always load the atkbd driver?
>>> i read the freebsd manpage and checked device hints:
>>>
>>> plummy root# cat /boot/device.hints |grep atkbd
>>> hint.atkbdc.0.at="isa"
>>> hint.atkbdc.0.port="0x060"
>>> hint.atkbd.0.at="atkbdc"
>>> hint.atkbd.0.irq="1"
>>>
>>> but whatever i tried to change didn't helped..
>>>
>>> thanks for help!
>>>
>>>
>>>
>>> _______________________________________________
>>> freebsd-hackers at freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>>> To unsubscribe, send any mail to 
>>> "freebsd-hackers-unsubscribe at freebsd.org"
>>
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org" 



More information about the freebsd-hackers mailing list