Search results

  1. Y

    IPV6 UDP Socket recvfrom problem

    Hi all, While writing an IPv6 udp server application I hit something strange ( or I am very tired:) ) I wrote a test code to repeat the situation: http://pastebin.com/MB8yECa1 there are two tests in test program.. In first test, I use below code to get a message from udp socket: struct...
  2. Y

    A question about netgraph interface.

    on the host allow.raw_socket is enabled: sysctl -a | grep jail.allow security.jail.allow_raw_sockets: 1 I am using vimage enabled kernel and can use ping and traceroute commands inside the jail. In addition I have access to ngctl interface, can use ngctl to create interfaces as: ngctl...
  3. Y

    A question about netgraph interface.

    Hi, I want to use netgraph interface to connect jails and create complex network topologies. In attached tutorial steps are given clearly. But I have a problem in target topology given at slide 46. What my problem is I can not create an ether interface in jails. As a result I can not...
  4. Y

    can't connect to internet

    did you try turning firewall of? May be it is blocking dhcp messages. if you are using pf, > su > /etc/rc.d/pf stop
  5. Y

    Cheat OS fingerprinting

    protecting and cheating have different meanings. If you protect against fingerprinting you create difficulties for scanners to determine your underlying OS. On the other hand cheating means that you have a freebsd machine and you want it to look like a windows xp sp2 from the view of scanners...
  6. Y

    Cheat OS fingerprinting

    Hi, I need an os fingerprint cheater. I found ippersonality but it is written for linux. I couldn't find any equivalent of ippersonality. In addition, I think porting ippersonality to freebsd is not an easy task, even it is possible. Is there a freebsd tool to cheat nmap os...
  7. Y

    vimage: "Error: unknown parameter: vnet"

    Problem solved executing below commands after make depend make && make install
  8. Y

    vimage: "Error: unknown parameter: vnet"

    Hello, I trying to play with vimage but I found something strange. I don't know whether it is a bug. This is what I have done step by step 1. Kernel recompiled with "options VIMAGE" vi cd /usr/src/sys/i386/conf/GENERIC /usr/sbin/config GENERIC cd ../compile/GENERIC make cleandepend &&...
  9. Y

    divert sockets and ethernet header

    Hi all, Man page of divert says that "Divert sockets are similar to raw IP sockets, except that they can be bound to a specific divert port via the bind(2) system call". But I think there is one more difference between divert sockets and raw sockets. When I use divert socket I get an IP...
  10. Y

    Recalculate udp checksum

    I am trying to change udp packet payload via a divert socket.
  11. Y

    Recalculate udp checksum

    you mean this line? csum = in_cksum_skip(m, ip->ip_len, offset); this is an example usage of the method but my problem is different. I can not compile my code if I use below piece of code uh_sum = in_cksum(m, len + sizeof (struct ip)); yavuzg# gcc -o out divert_out.c...
  12. Y

    Recalculate udp checksum

    Hi all, I want to re-calculate checksum of an udp packet, When I grep freebsd code I found below line: (/usr/src/sys/netinet/udp_usrreq.c) uh_sum = in_cksum(m, len + sizeof (struct ip)); When try to use above method in my userland code I got linker error: yavuzg# gcc -o out...
  13. Y

    Divert Socket Problem

    I found the reason, I were using client and server applications both on localhost, when I tried to connect to server from another machine, divert socket worked as expected. I don't understand why it did not worked when both server and client on the same computer. It may be something...
  14. Y

    Divert Socket Problem

    I have these rules: yavuzg# ipfw list 01000 divert 2000 tcp from any to any dst-port 2000 in 01001 allow ip from any to any 65535 deny ip from any to any When I delete 1000 from list, divert does not works but connection establishes :) I think my problem is in reinjecting packet back to IP...
  15. Y

    Divert Socket Problem

    or, I couldn't really reinject the packet to the IP stack. Dou you have any idea about the origin or the problem?
  16. Y

    Divert Socket Problem

    @argon, thanks for the answer. I have added an ipfw rule as you said, Now, I catch packets with divert socket but the new problem is telnet can't establish a connection to server program. I think my ipfw rule and divert socket somehow blocks outgoing packets from server. Therefore...
  17. Y

    Divert Socket Problem

    @expl: I have configured kernel and there is no problem. Code is running with no error. ( if kernel was not configured an error will be occured. ) @aragon: what do you mean by diverting traffic to divert socket? Could you give an example?
  18. Y

    Divert Socket Problem

    expl, thanks for the answer, but instead of raw socket I used "divert" socket. http://www.freebsd.org/cgi/man.cgi?query=divert&apropos=0&sektion=0&manpath=FreeBSD+8.0-RELEASE&format=html http://www.faqs.org/docs/Linux-mini/Divert-Sockets-mini-HOWTO.html What I understood from above...
  19. Y

    Divert Socket Problem

    Hi all, I have problem with divert socket. I found some code for linux and compiled it in freebsd. What I want to simply print packages via divert socket. There is two files, server.pl and divert.c at below link. server.pl simply open a connection and listens on a given port. perl...
  20. Y

    /usr/local/lib/libX11.so: undefined reference to `shmctl@FBSD_1.1'

    I have the same problem when tried to install /java/jdk16.. any advice?
Back
Top