Displaying 20 results from an estimated 10000 matches similar to: "Requesting a remote ip in plugin"
2007 Nov 23
4
help! problem with mongrel, request.remote_ip and lighttpd
I have an existing rails application on lighttpd and I am trrying to upgrade
to mongrel for the enhanced scalability it offers.
I am running mongrel 1.1.1, rails 1.2.5, lighttpd 1.4.13 and ruby 1.8.5
Everything is working great except request.remote_ip returns 127.0.0.1 or
192.168.0.102 (the internal network address of the server running lighty).
I''ve seen some older posts about
2007 Nov 23
2
Unable to read anything from request.remote_ip
For some users, request.remote_ip always return nil. According to the
RAILS''s help:
REMOTE_ADDR is the standard but will fail if the user is behind a proxy.
HTTP_CLIENT_IP and/or HTTP_X_FORWARDED_FOR are set by proxies so check
for these before falling back to REMOTE_ADDR. HTTP_X_FORWARDED_FOR may
be a comma- delimited list in the case of multiple chained proxies; the
first is the
2006 Jun 28
8
How to obtain clients IP adress
Is it possible to obtain clients adress in ruby on rails?
by
TheR
--
Posted via http://www.ruby-forum.com/.
2004 Jul 09
1
passing remote ip to pam
to improve forensic log info i want to set the PAM_RHOST value to the
remote ip (which pam logs as rhost=foo in failure messages). i didn't
look to see if anything has been done in this way on CVS because i'm still
on 0.99.10.6.
below is a bit of a hack. in some sense the remote_ip might make more
sense in the AUTH_LOGIN_REQUEST_NEW packet rather than the continue
packet... but that
2006 Jan 16
4
Creating two records at once
Hi there,
I have a User model and a Profile model. A user has_one profile, and a
profile belongs_to a user. The profile model contains a user_id column
as the foreign key.
The problem comes in when I want a user to register. In the
user_controller I have a method that creates the user. I also want the
profile model to be filled in with the appropriate user_id foreign key
(I don''t care
2014 Jun 18
1
VPN address of the remote host
Hello,
Please bear with my inexperience ;)
Some tinc configuration examples available on the Internet include a
statement like this:
"route add -net $subnet netmask $netmask gw $remote_ip", where
$remote_IP is the VPN address of the remote host.
Q1:
Does this statement modify the behaviour of tinc (as compared to
"ifconfig $interface $local_ip netmask $netmask")?
Q2:
If it
2010 Oct 28
3
SIP client floods port 5060 and gets blocked
Hello,
Is there any reason why an IP-phone would pounder on port 5060 ? My
firewall blocks the public IP because it thinks the remote IP is port
scanning on port 5060.
I think the phone is just registering but for some reason it does this
repeatedly in a very short time.
Oct 28 09:01:48 astserver kernel: Firewall: *UDP_IN Blocked* IN=eth0
OUT= MAC=00:00:00:00:00:00:00:00:00:00:00:00:00:00
2006 Apr 30
4
Server IP
Can a ruby on rails app obtain the ip of the server it is running on?
I''d like the application to be able to determine x set of data is for y
data, for example:
These domains all point to the same ip...
mydomain-1.com
mydomain-2.com
mydomain-3.org
I can obtain the domain name from the request by using:
@request.domain
I''d like the application to grab the corresponding ip for
2008 Feb 24
1
Problems with request.remote_ip
Hello everyone,
I am trying to use request.remote_ip in my application to log a user''s
IP address because I have been having a lot of abuse issues. basically
when a user logs I simply call user.update_attribute(:last_ip,
request.remote_ip). The problem is that for some reason a lot of people
that have recently logged in still have NULL listed as their last_ip in
the database, even
2006 Jan 19
4
Relationships... not the personal kind!
Hello all,
I''m very new to Rails and I love it so far. However, there are some
things that aren''t so clear to me.
Let''s say a blog post can have many comments, and a comment can only
belong to one post. A user can have many posts and many comments as
well. (this part makes perfect sense):
class Comment < ActiveRecord::Base
belongs_to :posting
belongs_to :user
2010 Jul 23
2
How to get remote hostname from behind mongrel cluster in rails?
Using request.env[''REMOTE_HOST''] worked with WEBrick, but returns
blank when running behind mongrel cluster.
For IP Address, I am able to use request.remote_ip.
Thank you.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2014 Aug 05
1
[Patch] mail_log plugin supports remote, local ip addresses
Hello,
In attached file you will find patch for mail_log plugin to output
local, remote ip addresses. It may be usefull for somebody.
To enable support for dovecot 2.2.x versions change the line 'include
"net.h"' instead of 'include "network.h"'.
Thank you.
P.S. Sorry, for previous empty message.
--
With Best Regards,
Vitaliy T.
-------------- next part
2008 Sep 03
1
request.remote_ip returns kok + ip
What is this? When I use request.remote_ip in my rails app and print it
to a web page it says "kok" and then the ip. What is that word there
for?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email
2009 Aug 10
12
v2.0 configuration parsing
I'm trying to figure out how exactly v2.0 should be parsing
configuration files. The most annoying part is if it should always just
"use whatever comes first in config" or try some kind of a "use most
specific rule". The "most specific" kind of makes more sense initially,
but then you start wondering how to handle e.g.:
1) User logs in to imap from 192.168.0.1.
2008 Nov 28
1
Rails Beginner.. NoMethodError
Dear all
I encounter error when I login my Web application
NoMethodError in AdminController#login
undefined method `get_title'' for #<Class:0x63ac78>
Here is part of my code
controller/admin_controller.rb
def login
session[:user_id] = nil
if request.post?
if User.authenticate(params[:name], params[:password])
user = User.find_by_name(params[:name])
2009 Feb 09
3
can't call request.remote_ip from object?
class User
def update_metadata
self.update_attributes({:last_login_at => Time.now,
:last_known_up => request.remote_ip,
:last_known_user_agent =>
request.user_agent})
end
This does not work. It bombs out with:
undefined local variable or method `request'' for #<User:0x1e146e0>
But the request calls work in a
2020 Aug 25
2
Metric label values truncated when using OpenMetrics endpoint
Hi Jeff,
Thanks for your reply!
Regarding grouping by remote address, I understand and for now I'll keep a close eye. Maybe it's an option to group by /24 for ipv4 and /64 for IPv6? We currently do that based on the logs but the OpenMetrics endpoint seem a lot easier.
A slight hijack of the original question: but I tried to log only IP addresses (+ result) of failed login attempts but
2006 Jul 25
0
Errors logged but not returned to browser, WEBrick hangs
An app I''ve been developing has been chugging along nicely, but around
the time I added a new join model a couple of commits ago, my
development environment has been acting screwy.
1. When there''s an error, the error messages and tracebacks are not
being returned to the browser. The browser keeps the connection alive
indefinitely.
2. Stopping the request from the browser
2010 Nov 16
1
Help - custom vpopmail
Hi,
First, I'm not sure if dovecot should alter this, but it seems vpopmail
writes the IP into the 'remote_ip' field instead of the auth type. Dovecot
still writes the auth type.? I want both.
So I modified my vpopmail install to write an additional field into the
lastauth table.? My custom vpopmail writes the remote IP into remote_ip,
and the auth type into a 'type'
2006 Jun 29
1
Problems getting past authentication using functional tests
Hi,
I''m having a problem getting past the authentication mechanism in rails
using my controller functional tests.
my functional tests look like this
def test_4
$stdout.puts ''TEST 4: cookies is '' + cookies.to_s
# :user => {:id => users(:testuser).id}
cookies[:user_id] = ''2222''
$stdout.puts ''1. cookies is ''