Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

As some software doesn't listen to IPv6 port, we often do a port proxy to solve the problem. For example, the remote desktop in Win2003, we just run netsh interface portproxy add v6tov4 listenport=3389 connectaddress=127.0.0.1 connectport=3389 and then everything goes well.

Now I'd like to visit the Deluge WebUI (127.0.0.1:8112) by IPv6, how to do this in ubuntu???

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You can use xinetd for that.

In this example I'll show how to redirect incoming connections to IPv6 address 2001:db8::1 port 1234 to IPv4 address 192.0.2.1 port 1234. I'll call the configuration/service 'demo':

Put the following configuration in a configuration file called /etc/xinetd.d/demo:

service demo
{
    type            = UNLISTED
    port            = 1234
    bind            = 2001:db8::1
    socket_type     = stream
    wait            = no
    user            = nobody
    redirect        = 192.0.2.1 1234
}

It also lets you control who can access the service in both the service definition and the /etc/hosts.allow and /etc/hosts.deny files.

service demo
{
    ...
    only_from       = 2001:db8::/32
    no_access       = 2001:db8:ffff::/48
    ...
}

Other potentially useful option:

service demo
{
    ...
    access_times    = 09:45-16:15
    log_on_success  = HOST DURATION
    log_on_failure  = HOST ATTEMPT
    ...
}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.