LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-08-2010, 07:21 AM   #1
btp10
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
Exclamation Problem in sending/receiving using sockets between two systems using IPv6 addresses


We have connected two systems with ethernet cables and have configured the two systems with ipv6 addresses. The IP of one system is 2001:0db8:0:f101::1 (let's say X::1) (This system runs OS Fedora 10) and the other is 2001:0db8:0:f101::2. (Let's say X::2) (This system runs OpenSuSE 10.3) We are able to ping from both systems to the other. We are able to ssh into the one with IP X::2 from the one with IP X::1, but not vice versa. We have disabled iptables on both systems by using the following commands:

/etc/init.d/iptables save
/etc/init.d/iptables stop

on the fedora 10 system

and

# iptables -X
# iptables -t nat -F
# iptables -t nat -X
# iptables -t mangle -F
# iptables -t mangle -X
# iptables -P INPUT ACCEPT
# iptables -P FORWARD ACCEPT
# iptables -P OUTPUT ACCEPT

on the openSuse system.

The error we get in trying to ssh from the openSuse system to the fedora system is :

ssh: connect to host 2001:0db8:0:f101::1 port 22: Connection refused

There is also another problem. We're trying to write server and client code to send data from one system to the other using SOCK_DGRAM. The code works fine when we run both the client and server on the same system. However, we are not able to send data from one system to another when we use the IPv6 addresses to run the client and server programs. The error we get is:

sendto(): Operation not permitted

The codes we are using for the server and client programs can be found here in beej's guide here :
http://beej.us/guide/bgnet/output/ht....html#datagram

We've only substituted the appropriate addresses in the right places...

Could anyone tell us what else could be the problem? We've disabled the iptables...
 
Old 03-08-2010, 09:43 AM   #2
wikiyang
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
please use tcpdump , to capture the packet from the both servers.
make sure the network connection is ok
 
  


Reply

Tags
iptables, ipv6, socket


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail size problem sending and receiving juan1987 Linux - Newbie 12 03-12-2009 01:47 AM
problem in receiving data in udp sockets ramya_ts Linux - Embedded & Single-board computer 1 01-07-2009 02:12 PM
Raw Sockets and IPv6 SaraiKhan Programming 1 11-27-2008 07:07 AM
Email sending problem when sent to some addresses tenzan Linux - Networking 2 09-19-2006 10:14 PM
local email sending/receiving problem htm Linux - Software 2 04-09-2004 11:06 PM


All times are GMT -5. The time now is 06:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration